Documentation
¶
Overview ¶
* The MIT License (MIT)
Copyright (c) 2020 Matter Labs ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
PrivateKey represents a private key.
func NewPrivateKey ¶
func NewPrivateKey(seed []byte) (*PrivateKey, error)
NewPrivateKey generates private key from seed
func NewPrivateKeyRaw ¶
func NewPrivateKeyRaw(pk []byte) (*PrivateKey, error)
NewPrivateKeyRaw create private key from raw bytes
func (*PrivateKey) GetBytes ¶
func (pk *PrivateKey) GetBytes() []byte
GetBytes return private key raw bytes
func (*PrivateKey) HexString ¶
func (pk *PrivateKey) HexString() string
HexString creates a hex string representation of a private key
func (*PrivateKey) PublicKey ¶
func (pk *PrivateKey) PublicKey() (*PublicKey, error)
PublicKey generates public key from private key
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
PublicKey represents a public key
func (*PublicKey) Hash ¶
func (pk *PublicKey) Hash() (*PublicKeyHash, error)
Hash generates hash from public key
type PublicKeyHash ¶
type PublicKeyHash struct {
// contains filtered or unexported fields
}
PublicKeyHash represents a public key hash
func (*PublicKeyHash) HexString ¶
func (pk *PublicKeyHash) HexString() string
HexString creates a hex string representation of a public key hash
type ResqueHash ¶
type ResqueHash struct {
// contains filtered or unexported fields
}
ResqueHash represents a resque hash of orders
func ResqueHashOrders ¶
func ResqueHashOrders(orders []byte) *ResqueHash
ResqueHashOrders generates hash from orders bytes
func (*ResqueHash) GetBytes ¶
func (rh *ResqueHash) GetBytes() []byte
GetBytes return resque hash raw bytes
Click to show internal directories.
Click to hide internal directories.