Documentation ¶
Index ¶
Constants ¶
View Source
const HASH_LENGTH = 32
View Source
const LIBRA_HASH_SUFFIX = "@@$$LIBRA$$@@"
View Source
const (
RAW_TRANSACTION = "RawTransaction"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CryptoHasher ¶
type CryptoHasher struct {
// contains filtered or unexported fields
}
func NewCryptoHasher ¶
func NewCryptoHasher(salt []byte) *CryptoHasher
func (*CryptoHasher) Hash ¶
func (c *CryptoHasher) Hash(data []byte) *HashValue
type HashValue ¶
type HashValue struct {
// contains filtered or unexported fields
}
func (*HashValue) GetValue ¶
func (h *HashValue) GetValue() [HASH_LENGTH]byte
type KeyPair ¶
type KeyPair struct { PrivateKey *PrivateKey PublicKey *PublicKey }
func NewKeyPair ¶
type PrivateKey ¶
type PrivateKey struct {
Value ed25519.PrivateKey
}
type Signature ¶
type Signature struct {
Value []byte
}
func SignMessage ¶
func SignMessage(msg *HashValue, privateKey *PrivateKey) *Signature
Click to show internal directories.
Click to hide internal directories.