Documentation ¶
Index ¶
- Constants
- func Decode(b []byte) (principal.Signer, error)
- func Generate() (principal.Signer, error)
- func Parse(str string) (principal.Signer, error)
- type Ed25519Signer
- func (s Ed25519Signer) Code() uint64
- func (s Ed25519Signer) DID() did.DID
- func (s Ed25519Signer) Encode() []byte
- func (s Ed25519Signer) Sign(msg []byte) signature.SignatureView
- func (s Ed25519Signer) SignatureAlgorithm() string
- func (s Ed25519Signer) SignatureCode() uint64
- func (s Ed25519Signer) Verifier() principal.Verifier
Constants ¶
View Source
const Code = 0x1300
View Source
const Name = verifier.Name
View Source
const SignatureAlgorithm = verifier.SignatureAlgorithm
View Source
const SignatureCode = verifier.SignatureCode
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ed25519Signer ¶
type Ed25519Signer []byte
func (Ed25519Signer) Code ¶
func (s Ed25519Signer) Code() uint64
func (Ed25519Signer) DID ¶
func (s Ed25519Signer) DID() did.DID
func (Ed25519Signer) Encode ¶
func (s Ed25519Signer) Encode() []byte
func (Ed25519Signer) Sign ¶
func (s Ed25519Signer) Sign(msg []byte) signature.SignatureView
func (Ed25519Signer) SignatureAlgorithm ¶
func (s Ed25519Signer) SignatureAlgorithm() string
func (Ed25519Signer) SignatureCode ¶
func (s Ed25519Signer) SignatureCode() uint64
func (Ed25519Signer) Verifier ¶
func (s Ed25519Signer) Verifier() principal.Verifier
Click to show internal directories.
Click to hide internal directories.