menu
announcement

Spectrum will become read-only on August 10, 2021. Learn more about the decision in our official announcement.

Channels
Team
Posts
Chat
Members
Info
Show previous messages

April 7, 2021 at 10:31am
Hi Team, For the new JSON Object as input ,how we can wrapDocuments without put in a folder like ./document.json..
  • reply
  • like
I mean by directly using JSON object
  • reply
  • like
const { wrapDocument } = require("@govtechsg/open-attestation");
const myDoc = {
"issuers": [
{
"documentStore": "0xabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd",
"name": "University of Blockchain",
"identityProof": {
"type": "DNS-TXT",
"location": "example.com"
}
}
]
};
const wrappedDocument = wrapDocument(myDoc);
Edited
  • reply
  • like
const { wrapDocuments } = require("@govtechsg/open-attestation");
const myDoc1 = {
"issuers": [
{
"documentStore": "0xabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd",
"name": "University of Blockchain",
"identityProof": {
"type": "DNS-TXT",
"location": "example.com"
}
}
]
};
const myDoc2 = {
"issuers": [
{
"documentStore": "0xabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd",
"name": "University of Blockchain",
"identityProof": {
"type": "DNS-TXT",
"location": "example.com"
}
}
]
};
const wrappedDocument = wrapDocuments([myDoc1, myDoc2]);
Edited
  • reply
  • like
docs ^^
  • reply
  • like
Okie.. Thank you.. :)
  • reply
  • like
When I pass wrappedDocument to verify(), iSValid() is failing..and binding errors?
  • reply
  • like
Where is Proof part is generating
"proof": [ { "type": "OpenAttestationSignature2018", "created": "2021-01-27T05:55:48.205Z", "proofPurpose": "assertionMethod", "verificationMethod": "did:ethr:0x82948a537e886Ea8ffF5Bd29DDA95224bF74c35F#controller", "signature": "0x879b71c39ff7e984a5fb061613232b3c1bb24429f8d2eab43b0ed1710698f00a7dccf8bb05dc3debc4054a281c469f5468757743d61a9fb9a5a7044b5db6de9e1b" } ]
  • reply
  • like
Have your read the documentation? Wrapping is just one part of the flow...
  • reply
  • like

April 8, 2021 at 5:36am
Hi Team,
  • reply
  • like
I removed salt content from ropsten data and stored it in a JSON object and convert it into wrapDocuments,then trying to pass into verify() getting "This certificate is not valid" error
Is I am missing anything.. Could you plz help me?
  • reply
  • like
I go through the document,but missed some steps...Thank you for your valuable advice
  • reply
  • like
Hi Team,My wallet balance is 0 Ethers, How I can use a different ether faucet for ropsten network?
  • reply
  • like
Is I am missing anything.. Could you plz help me? You need to issue and set up a correct identity. You can check the fragments (returns by verify) and search for ERROR / INVALID status
  • reply
  • like
this faucet (https://faucet.ropsten.be/) when it works
  • reply
  • like
otherwise just try to google
  • reply
  • like
Thank you so much.. Credited now :)
  • reply
  • like

June 4, 2021 at 3:11pm
Hi, it looks like the Notarise API is partially down again
  • reply
  • like

June 8, 2021 at 8:16am
Hi Team... I have opencert project which using WrappedDocument<v2.OpenAttestationDocument> How I can update the project by certificate verification using WrappedOrSignedOpenCertsDocument
  • reply
  • like
and How to update /open-attestation version
  • reply
  • like

June 11, 2021 at 4:20pm
Hi all, for information spectrum will close down in August. Yu can reach us out on github, using github discussions
  • reply
  • like

July 2, 2021 at 3:56am
Hi all, newbie here, recently came across the HealthCert and like to understand more on technology behind and if possible to integrate to the project that i am handling.
  • reply
  • like
Hi, what do you want to know exactly? It uses open attestation (DID flow) and its own schema
Edited
  • reply
  • like