mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
add empty vkey to attestation standard
This commit is contained in:
@@ -18,6 +18,7 @@ export interface OpenPassportAttestation {
|
||||
proof: string[];
|
||||
publicSignals: string[];
|
||||
};
|
||||
vkey: string;
|
||||
};
|
||||
dscProof: {
|
||||
type: string;
|
||||
@@ -26,6 +27,7 @@ export interface OpenPassportAttestation {
|
||||
proof: string[];
|
||||
publicSignals: string[];
|
||||
};
|
||||
vkey: string;
|
||||
};
|
||||
dsc: {
|
||||
type: string;
|
||||
@@ -98,6 +100,7 @@ export function buildAttestation(options: {
|
||||
proof: proof,
|
||||
publicSignals: publicSignals,
|
||||
},
|
||||
vkey: "",
|
||||
},
|
||||
dscProof: {
|
||||
type: 'ZeroKnowledgeProof',
|
||||
@@ -106,6 +109,7 @@ export function buildAttestation(options: {
|
||||
proof: dscProof || [],
|
||||
publicSignals: dscPublicSignals || [],
|
||||
},
|
||||
vkey: "",
|
||||
},
|
||||
dsc: {
|
||||
type: 'X509Certificate',
|
||||
@@ -135,6 +139,7 @@ export class OpenPassportDynamicAttestation implements OpenPassportAttestation {
|
||||
proof: string[];
|
||||
publicSignals: string[];
|
||||
};
|
||||
vkey;
|
||||
};
|
||||
dscProof: {
|
||||
type: string;
|
||||
@@ -143,6 +148,7 @@ export class OpenPassportDynamicAttestation implements OpenPassportAttestation {
|
||||
proof: string[];
|
||||
publicSignals: string[];
|
||||
};
|
||||
vkey;
|
||||
};
|
||||
dsc: {
|
||||
type: string;
|
||||
|
||||
Reference in New Issue
Block a user