localsigner

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: EUPL-1.2 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalSigner

type LocalSigner struct {
	PkId string
	Pk   *gabi.PublicKey
	// contains filtered or unexported fields
}

func New

func New(pkId, pkPath, skPath string) (*LocalSigner, error)

func NewFromString

func NewFromString(pkId, pkXML, skXML string) (*LocalSigner, error)

func (*LocalSigner) FindIssuerPk added in v0.3.0

func (ls *LocalSigner) FindIssuerPk(kid string) (pk *gabi.PublicKey, err error)

func (*LocalSigner) PrepareSign

func (ls *LocalSigner) PrepareSign() (pkId string, issuerNonce *big.Int, err error)

func (*LocalSigner) Sign

func (ls *LocalSigner) Sign(credentialsAttributes [][]*big.Int, proofUs []*big.Int, holderNonce *big.Int) (isms []*gabi.IssueSignatureMessage, err error)

Jump to

Keyboard shortcuts

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