The Swiss Army knife to power JavaScript based client solutions ranging from Web apps/explorers over browser extensions to server-side clients like faucets/scrapers.
Error : "failed to execute message; message index: 0: credential proof could not be verified: verification error : message signer does not match provided did",
Error : "failed to execute message; message index: 0: credential proof could not be verified: verification error: message signer does not match provided did",
const signer: OfflineDirectSigner = await getSignerFromPriKey() const regulator = (await signer.getAccounts())[0].address const pubKey = (await signer.getAccounts())[0].pubkey const algo = (await signer.getAccounts())[0].algo const issuerDID: string =
did:cosmos:key:${regulator}
const subjectDID: string =
did:cosmos:key:${regulator}
const credentialID: string = "regulator-credential/" + subjectDID const vmID: string =${issuerDID}#${regulator}
; const signingClient = await RegulatorSigningStargateClient.connectWithSigner(rpc, signer) let vc: VerifiableCredential = VerifiableCredential.fromPartial({ context: ["https://www.w3.org/TR/vc-data-model/"], id: credentialID, issuer: issuerDID, issuanceDate: new Date, regulatorCred: RegulatorCredentialSubject.create({ id: subjectDID, name: name, country: countryCode }), type: ["verifiableCredential", "RegulatorCredential"], })const issueVC = async ( vc: VerifiableCredential, pubKey: Uint8Array, sequence: number, chainId: string, signer: OfflineDirectSigner, accountNumber: number, regulator: string, algo: string, vmID: string, signingClient: RegulatorSigningStargateClient, fee: StdFee ): Promise => {
}