@zcredjs/mina
v1.0.4
Published
Library provides zcred implementations for mina
Downloads
52
Readme
zcred for mina
Library provides zcred implementations for mina
Provided proofs
Signature proofs: mina:poseidon-pasta
ACI proofs: aci:mina-poseidon
Credential Verifiers
mina:poseidon-pasta
const verifier = new MinaCredentialVerifier("mina:poseidon-pasta");
const isVerified = await verifier.verify(cred, reference)
aci:mina-poseidon
const verifier = new MinaCredentialVerifier("aci:mina-poseidon");
const isVerified = await verifier.verify(cred, reference)
Wallet Adapter
Aruo wallet adapter
const auro = window.mina;
const adapter = new AuroWalletAdapter(auro);
await adapter.getAddress(); // returns wallet address
await adapter.getChainId() // returns CAIP-2 chain id
await adapter.getSubjectId() // returns ZCIP-2 subject id
await adapter.sign({message: "hello"}) // returns signature