Documentation ¶
Overview ¶
* MIT License
Copyright (c) 2018 WavesPlatform ¶
* MIT License
Copyright (c) 2018 WavesPlatform
Index ¶
- Constants
- func GenerateKeyPair(seed []byte) (SecretKey, PublicKey, error)
- func GenerateWavesKey(rand io.Reader) (publicKey *[PublicKeySize]byte, privateKey *[PrivateKeySize]byte, err error)
- func PublicKeyToCurve25519(curve25519Public *[32]byte, publicKey *[32]byte) bool
- func ToBase58JSON(b []byte) []byte
- type Digest
- type PublicKey
- type SecretKey
- type Signature
Constants ¶
View Source
const ( DigestSize = 32 SignatureSize = 64 PublicKeySize = 32 SecretKeySize = 32 PrivateKeySize = 64 )
Variables ¶
This section is empty.
Functions ¶
func GenerateWavesKey ¶
func GenerateWavesKey(rand io.Reader) (publicKey *[PublicKeySize]byte, privateKey *[PrivateKeySize]byte, err error)
GenerateWavesKey generates a public/private key pair using randomness from rand.
func PublicKeyToCurve25519 ¶
PublicKeyToCurve25519 converts an Ed25519 public key into the curve25519 public key that would be generated from the same private key.
func ToBase58JSON ¶
Types ¶
type Digest ¶
type Digest [DigestSize]byte
func NewDigestFromBase58 ¶
func NewDigestFromBytes ¶
func SecureHash ¶
func (Digest) MarshalJSON ¶
type PublicKey ¶
type PublicKey [PublicKeySize]byte
func GeneratePublicKey ¶
GeneratePublicKey generates a public key from a secret key.
func NewPublicKeyFromBase58 ¶
func NewPublicKeyFromBytes ¶
func (PublicKey) MarshalJSON ¶
type SecretKey ¶
type SecretKey [SecretKeySize]byte
func GenerateSecretKey ¶
func NewSecretKeyFromBase58 ¶
Click to show internal directories.
Click to hide internal directories.