@orangecheck/sdk 0.1.5 → 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/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) {