Documentation ¶
Overview ¶
Package mock defines mocks for protocol testing
Index ¶
- Constants
- func PrepareAuthInputs(hash []byte, _ *w3c.DID, _ circuits.CircuitID) ([]byte, error)
- func ResolveEncPrivateKey(keyID string) (interface{}, error)
- func ResolveKeyID(keyID string) (jose.JSONWebKey, error)
- func VerifyState(_ circuits.CircuitID, _ []string) error
- type ProvingMethodGroth16AuthV2
Constants ¶
View Source
const MockRecipientKeyID = "123456789"
MockRecipientKeyID is mocked key id for recipient
Variables ¶
This section is empty.
Functions ¶
func PrepareAuthInputs ¶
PrepareAuthInputs returns mocked inputs for auth circuit
func ResolveEncPrivateKey ¶
ResolveEncPrivateKey returns mocked private key
func ResolveKeyID ¶
ResolveKeyID returns mocked public key for any key ID
func VerifyState ¶
VerifyState return no error always
Types ¶
type ProvingMethodGroth16AuthV2 ¶
type ProvingMethodGroth16AuthV2 struct {
jwz.ProvingMethodAlg
}
ProvingMethodGroth16AuthV2 proving method to avoid using of proving key and wasm files
func (*ProvingMethodGroth16AuthV2) Alg ¶
func (m *ProvingMethodGroth16AuthV2) Alg() string
Alg returns current zk alg
func (*ProvingMethodGroth16AuthV2) CircuitID ¶
func (m *ProvingMethodGroth16AuthV2) CircuitID() string
CircuitID returns name of circuit
Click to show internal directories.
Click to hide internal directories.