@orangecheck/sdk 0.1.4 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/attestation.js +2 -2
- package/dist/attestation.js.map +1 -1
- package/dist/attestation.mjs +2 -2
- package/dist/attestation.mjs.map +1 -1
- package/dist/canonical.js +1 -1
- package/dist/canonical.js.map +1 -1
- package/dist/canonical.mjs +1 -1
- package/dist/canonical.mjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/verify.js.map +1 -1
- package/dist/verify.mjs.map +1 -1
- package/package.json +101 -98
package/dist/index.mjs
CHANGED
|
@@ -112,7 +112,7 @@ async function createAttestationEnvelope(message, signature, scheme, address, id
|
|
|
112
112
|
const messageBytes = encoder.encode(message);
|
|
113
113
|
const base64 = btoa(String.fromCharCode(...messageBytes));
|
|
114
114
|
const message_b64url = base64.replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
|
115
|
-
const verification_url = `https://ochk.io/attest/${attestation_id}`;
|
|
115
|
+
const verification_url = `https://attest.ochk.io/attest/${attestation_id}`;
|
|
116
116
|
return {
|
|
117
117
|
attestation_id,
|
|
118
118
|
scheme,
|
|
@@ -663,7 +663,7 @@ async function getAttestationsForIdentity(protocol, identifier, relays = DEFAULT
|
|
|
663
663
|
function formatIdentitiesForDisplay(identities) {
|
|
664
664
|
return identities.map((id) => `${id.protocol}:${id.identifier}`).join(", ");
|
|
665
665
|
}
|
|
666
|
-
function getVerificationUrl(attestationId, baseUrl = "https://ochk.io") {
|
|
666
|
+
function getVerificationUrl(attestationId, baseUrl = "https://attest.ochk.io") {
|
|
667
667
|
return `${baseUrl}/attest/${attestationId}`;
|
|
668
668
|
}
|
|
669
669
|
function extractAttestationIdFromUrl(url) {
|