Documentation ¶
Index ¶
- Constants
- func GenKeyPair() ([]byte, *big.Int, *big.Int, error)
- func GenerateVrf(privKey, data []byte, randSrc bool) (dataVrf []byte, proof []byte, err error)
- func GetPrivateKeyFromSeed(seed []byte) []byte
- func GetSeedFromPrivateKey(priKey []byte) []byte
- func NewKeyFromPrivkey(privKey []byte) *big.Int
- func PrivateKeyToCurve25519PrivateKey(privateKey *[64]byte) *[32]byte
- func PublicKeyToCurve25519PublicKey(publicKey *[32]byte) (*[32]byte, bool)
- func Sign(priKey []byte, data []byte) (*big.Int, *big.Int, error)
- func Verify(X *big.Int, Y *big.Int, data []byte, r, s *big.Int) error
- func VerifyVrf(X *big.Int, Y *big.Int, data, dataVrf, proof []byte) bool
Constants ¶
View Source
const PrivateKeySize = ed25519.PrivateKeySize
View Source
const PublicKeySize = ed25519.PublicKeySize
View Source
const SeedSize = ed25519.SeedSize
View Source
const SignatureSize = ed25519.SignatureSize
Variables ¶
This section is empty.
Functions ¶
func GenerateVrf ¶
func GetPrivateKeyFromSeed ¶
func GetSeedFromPrivateKey ¶
func NewKeyFromPrivkey ¶
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package ed25519 implements a verifiable random function using the Edwards form of Curve25519, SHA512 and the Elligator map.
|
Package ed25519 implements a verifiable random function using the Edwards form of Curve25519, SHA512 and the Elligator map. |
internal/ed25519/edwards25519
Package edwards25519 implements operations in GF(2**255-19) and on an Edwards curve that is isomorphic to curve25519.
|
Package edwards25519 implements operations in GF(2**255-19) and on an Edwards curve that is isomorphic to curve25519. |
Click to show internal directories.
Click to hide internal directories.