attestation

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const MsgHeader = "Bitcoin Signed Message:\n"

Variables

This section is empty.

Functions

func NewRandomKey

func NewRandomKey() ([]byte, []byte, error)

Types

type Service

type Service struct{}

func NewAttestService

func NewAttestService() *Service

func (*Service) SignMsg

func (s *Service) SignMsg(key, msg []byte) ([]byte, error)

func (*Service) VerifySignature

func (s *Service) VerifySignature(message, pubkey, signature []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL