Documentation ¶
Index ¶
- func NewSigner(b []byte) (signature.Signer, error)
- func NewSignerFromKeyPair(kp *sr25519.KeyPair) signature.Signer
- type PublicKey
- func (pk PublicKey) Equal(other signature.PublicKey) bool
- func (pk PublicKey) MarshalBinary() ([]byte, error)
- func (pk PublicKey) MarshalText() ([]byte, error)
- func (pk PublicKey) String() string
- func (pk *PublicKey) UnmarshalBinary(data []byte) error
- func (pk *PublicKey) UnmarshalText(text []byte) error
- func (pk PublicKey) Verify(context, message, signature []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
PublicKey is an Sr25519 public key.
func NewPublicKey ¶ added in v0.5.1
NewPublicKey creates a new public key from the given Base64 representation or panics.
func (PublicKey) MarshalBinary ¶
MarshalBinary encodes a public key into binary form.
func (PublicKey) MarshalText ¶
MarshalText encodes a public key into text form.
func (*PublicKey) UnmarshalBinary ¶
UnmarshalBinary decodes a binary marshaled public key.
func (*PublicKey) UnmarshalText ¶
UnmarshalText decodes a text marshaled public key.
Click to show internal directories.
Click to hide internal directories.