Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SigningMethodNear ¶
type SigningMethodNear struct {
Name string
}
SigningMethodNear implements the NEAR signing method. Expects ed25519.Ed25519PrivateKey for signing and ed25519.Ed25519PublicKey for validation.
var SigningMethod *SigningMethodNear
SigningMethod is a specific instance of the NEAR signing method.
func (*SigningMethodNear) Alg ¶
func (m *SigningMethodNear) Alg() string
Alg returns the name of this signing method.
func (*SigningMethodNear) Sign ¶
func (m *SigningMethodNear) Sign(signingString string, key interface{}) (string, error)
Sign implements the Sign method from SigningMethod. For this signing method, must be a ed25519.Ed25519PrivateKey structure.
func (*SigningMethodNear) Verify ¶
func (m *SigningMethodNear) Verify(signingString, signature string, key interface{}) error
Verify implements the Verify method from SigningMethod. For this signing method, must be a ed25519.PublicKey structure.
Click to show internal directories.
Click to hide internal directories.