localsigner

package
v0.6.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: EUPL-1.2 Imports: 6 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

	Pool gabipool.PrimePool
	// contains filtered or unexported fields
}

func New

func New(pkId, pkPath, skPath string, pool gabipool.PrimePool) (*LocalSigner, error)

func NewFromString

func NewFromString(pkId, pkXML, skXML string, pool gabipool.PrimePool) (*LocalSigner, error)

func (*LocalSigner) FindIssuerPk added in v0.3.0

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

func (*LocalSigner) GetPrimePool added in v0.5.1

func (ls *LocalSigner) GetPrimePool() gabipool.PrimePool

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