forked from trent_larson/crowd-funder-for-time-pwa
remove remaining getIdentity calls & fix QR code for did:peer
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import {Buffer} from "buffer/";
|
||||
import {decode as cborDecode} from "cbor-x";
|
||||
import {bytesToMultibase, multibaseToBytes} from "did-jwt";
|
||||
import { Buffer } from "buffer/";
|
||||
import { decode as cborDecode } from "cbor-x";
|
||||
import { bytesToMultibase, multibaseToBytes } from "did-jwt";
|
||||
|
||||
import {getWebCrypto} from "@/libs/crypto/vc/passkeyHelpers";
|
||||
import { getWebCrypto } from "@/libs/crypto/vc/passkeyHelpers";
|
||||
|
||||
const PEER_DID_PREFIX = "did:peer:";
|
||||
export const PEER_DID_PREFIX = "did:peer:";
|
||||
const PEER_DID_MULTIBASE_PREFIX = PEER_DID_PREFIX + "0";
|
||||
|
||||
/**
|
||||
@@ -93,4 +93,4 @@ export function createPeerDid(publicKeyBytes: Uint8Array) {
|
||||
"p256-pub",
|
||||
);
|
||||
return PEER_DID_MULTIBASE_PREFIX + methodSpecificId;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user