Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SignatureAlgFromProto = map[string]SignatureAlg{ "ES256K": ECDSA, "ENS": ENS, } )
Functions ¶
This section is empty.
Types ¶
type EcdsaSigner ¶
type EcdsaSigner struct { Alg proto.SignerAlg Args SignerArgs }
func NewEcdsaSigner ¶
func NewEcdsaSigner(args SignerArgs) EcdsaSigner
func (EcdsaSigner) ToProto ¶
func (s EcdsaSigner) ToProto() *proto.Signer
type EnsSigner ¶
type EnsSigner struct { Alg proto.SignerAlg Args SignerArgs }
func NewEnsSigner ¶
func NewEnsSigner(args SignerArgs) EnsSigner
type Signature ¶
type Signature struct { Signature string Protected string Header SignatureHeader MessageHash string }
func NewSignatureFromProto ¶
func (*Signature) GetAlg ¶
func (s *Signature) GetAlg() SignatureAlg
type SignatureAlg ¶
type SignatureAlg int32
const ( ECDSA SignatureAlg = iota ENS SignatureAlg = iota UNRECOGNIZED_SIGNATURE_ALG SignatureAlg = -1 )
type SignatureHeader ¶
func NewSignatureHeaderFromProto ¶
func NewSignatureHeaderFromProto(s *proto.SignatureHeader) SignatureHeader
func (SignatureHeader) ToProto ¶
func (s SignatureHeader) ToProto() *proto.SignatureHeader
type SignerArgs ¶
Click to show internal directories.
Click to hide internal directories.