Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Documentation open-attestation-verify FALSE #231

@wechta

Description

@wechta

Hi, I try to follow documentation:
https://www.openattestation.com/docs/developer-section/libraries/remote-files/open-attestation-verify/

I use your wrapped document, with similar piece of code (tried to select ropsten network):
`import { isValid, verify } from "@govtechsg/oa-verify";
import { verificationBuilder, openAttestationVerifiers } from "@govtechsg/oa-verify";
//import * as document from "./bill-ONE8888-ropsten.json";
import * as document from "./document.json";

const fragments1 = await verify(document);
console.log("verify1: "+isValid(fragments1));
console.log("fragments1", fragments1)

const verify2 = verificationBuilder(openAttestationVerifiers, { network: "ropsten" });
const fragments2 = await verify2(document);
console.log("verify2: "+isValid(fragments2));
console.log("fragments2", fragments2)`

The response is:
verify1: false fragments1 [ { status: 'SKIPPED', type: 'DOCUMENT_INTEGRITY', name: 'OpenAttestationHash', reason: { code: 2, codeString: 'SKIPPED', message: 'Document does not have merkle root, target hash or data.' } }, { status: 'SKIPPED', type: 'DOCUMENT_STATUS', name: 'OpenAttestationEthereumTokenRegistryStatus', reason: { code: 4, codeString: 'SKIPPED', message: Document issuers doesn't have "tokenRegistry" property or TOKEN_REGISTRY method} }, { status: 'SKIPPED', type: 'DOCUMENT_STATUS', name: 'OpenAttestationEthereumDocumentStoreStatus', reason: { code: 4, codeString: 'SKIPPED', message:Document issuers doesn't have "documentStore" or "certificateStore" property or DOCUMENT_STORE method} }, { status: 'SKIPPED', type: 'DOCUMENT_STATUS', name: 'OpenAttestationDidSignedDocumentStatus', reason: { code: 0, codeString: 'SKIPPED', message: 'Document was not signed by DID directly' } }, { status: 'SKIPPED', type: 'ISSUER_IDENTITY', name: 'OpenAttestationDnsTxtIdentityProof', reason: { code: 2, codeString: 'SKIPPED', message:Document issuers doesn't have "documentStore" / "tokenRegistry" property or doesn't use DNS-TXT type} }, { status: 'SKIPPED', type: 'ISSUER_IDENTITY', name: 'OpenAttestationDnsDidIdentityProof', reason: { code: 0, codeString: 'SKIPPED', message: 'Document was not issued using DNS-DID' } } ] verify2: false fragments2 [ { status: 'SKIPPED', type: 'DOCUMENT_INTEGRITY', name: 'OpenAttestationHash', reason: { code: 2, codeString: 'SKIPPED', message: 'Document does not have merkle root, target hash or data.' } }, { status: 'SKIPPED', type: 'DOCUMENT_STATUS', name: 'OpenAttestationEthereumTokenRegistryStatus', reason: { code: 4, codeString: 'SKIPPED', message:Document issuers doesn't have "tokenRegistry" property or TOKEN_REGISTRY method} }, { status: 'SKIPPED', type: 'DOCUMENT_STATUS', name: 'OpenAttestationEthereumDocumentStoreStatus', reason: { code: 4, codeString: 'SKIPPED', message:Document issuers doesn't have "documentStore" or "certificateStore" property or DOCUMENT_STORE method} }, { status: 'SKIPPED', type: 'DOCUMENT_STATUS', name: 'OpenAttestationDidSignedDocumentStatus', reason: { code: 0, codeString: 'SKIPPED', message: 'Document was not signed by DID directly' } }, { status: 'SKIPPED', type: 'ISSUER_IDENTITY', name: 'OpenAttestationDnsTxtIdentityProof', reason: { code: 2, codeString: 'SKIPPED', message:Document issuers doesn't have "documentStore" / "tokenRegistry" property or doesn't use DNS-TXT type } }, { status: 'SKIPPED', type: 'ISSUER_IDENTITY', name: 'OpenAttestationDnsDidIdentityProof', reason: { code: 0, codeString: 'SKIPPED', message: 'Document was not issued using DNS-DID' } }

Even if I try same example as in documentation, the response is still false? What could go wrong?
Thank you, Peter

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions