package
module
Version:
v0.0.0-...-ca56296
Opens a new window with list of versions in this module.
Published: Mar 5, 2022
License: LGPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
Commit computes a 128-bit commitment of a nonce to send to the remote.
MakeSeed combines nonces into a seed appropriate to pass to NewRand. All nonces must be of the same length.
func Verify(ourCommitment []byte, theirCommitment []byte, theirNonce []byte) bool
Verify verifies that their commitment matches their nonce, and also their commitment is not the same as our commitment.
Source is a rand.Source compatible random number generator.
NewRand creates a new random number generator with the given seed.
Clone clones this random number generator.
Int63 implements Source.Int63.
Seed is not supported: you must create a new Source to reseed.
SeedOffset returns how many times Int63 has been called on this random number generator.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.