Documentation ¶
Index ¶
- func MPublicKey(r *rusk.PublicKey, f *PublicKey)
- func MSecretKey(r *rusk.SecretKey, f *SecretKey)
- func MStealthAddress(r *rusk.StealthAddress, f *StealthAddress)
- func MViewKey(r *rusk.ViewKey, f *ViewKey)
- func MarshalPublicKey(r *bytes.Buffer, f *PublicKey) error
- func MarshalSecretKey(r *bytes.Buffer, f *SecretKey) error
- func MarshalStealthAddress(r *bytes.Buffer, f *StealthAddress) error
- func MarshalViewKey(r *bytes.Buffer, f *ViewKey) error
- func UPublicKey(r *rusk.PublicKey, f *PublicKey)
- func USecretKey(r *rusk.SecretKey, f *SecretKey)
- func UStealthAddress(r *rusk.StealthAddress, f *StealthAddress)
- func UViewKey(r *rusk.ViewKey, f *ViewKey)
- func UnmarshalPublicKey(r *bytes.Buffer, f *PublicKey) error
- func UnmarshalSecretKey(r *bytes.Buffer, f *SecretKey) error
- func UnmarshalStealthAddress(r *bytes.Buffer, f *StealthAddress) error
- func UnmarshalViewKey(r *bytes.Buffer, f *ViewKey) error
- type PublicKey
- type SecretKey
- type StealthAddress
- type ViewKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MPublicKey ¶
MPublicKey copies the PublicKey structure into the Rusk equivalent.
func MSecretKey ¶
MSecretKey copies the SecretKey structure into the Rusk equivalent.
func MStealthAddress ¶
func MStealthAddress(r *rusk.StealthAddress, f *StealthAddress)
MStealthAddress copies the StealthAddress structure into the Rusk equivalent.
func MarshalPublicKey ¶
MarshalPublicKey writes the PublicKey struct into a bytes.Buffer.
func MarshalSecretKey ¶
MarshalSecretKey writes the SecretKey struct into a bytes.Buffer.
func MarshalStealthAddress ¶
func MarshalStealthAddress(r *bytes.Buffer, f *StealthAddress) error
MarshalStealthAddress writes the StealthAddress struct into a bytes.Buffer.
func MarshalViewKey ¶
MarshalViewKey writes the ViewKey struct into a bytes.Buffer.
func UPublicKey ¶
UPublicKey copies the Rusk PublicKey structure into the native equivalent.
func USecretKey ¶
USecretKey copies the Rusk SecretKey structure into the native equivalent.
func UStealthAddress ¶
func UStealthAddress(r *rusk.StealthAddress, f *StealthAddress)
UStealthAddress copies the Rusk StealthAddress structure into the native equivalent.
func UnmarshalPublicKey ¶
UnmarshalPublicKey reads a PublicKey struct from a bytes.Buffer.
func UnmarshalSecretKey ¶
UnmarshalSecretKey reads a SecretKey struct from a bytes.Buffer.
func UnmarshalStealthAddress ¶
func UnmarshalStealthAddress(r *bytes.Buffer, f *StealthAddress) error
UnmarshalStealthAddress reads a StealthAddress struct from a bytes.Buffer.
Types ¶
type PublicKey ¶
PublicKey is a Phoenix public key, consisting of two JubJub points.
func NewPublicKey ¶
func NewPublicKey() *PublicKey
NewPublicKey returns a new empty PublicKey struct.
type SecretKey ¶
SecretKey is a Phoenix secret key, consisting of two JubJub scalars.
func NewSecretKey ¶
func NewSecretKey() *SecretKey
NewSecretKey returns a new empty SecretKey struct.
type StealthAddress ¶
StealthAddress is a Phoenix stealth address, consisting of two JubJub points.
func NewStealthAddress ¶
func NewStealthAddress() *StealthAddress
NewStealthAddress returns a new empty StealthAddress struct.
func (*StealthAddress) Copy ¶
func (s *StealthAddress) Copy() *StealthAddress
Copy complies with message.Safe interface. It returns a deep copy of the message safe to publish to multiple subscribers.