Developer Guides
Setting up and docking a DP service
Frontend
Main Steps
Installing the Orange Pass Chrome Extension
Calling Methods Provided by the Orange Pass Extension to Initiate Verification
// Verification result
interface VerifyResult {
recipient: string;
verifier_address: string;
verifier_signature: string;
data_hash: string;
schema_id: string;
task_id: string;
user_hash: string;
}
// window.orangePass type definition
interface OrangePass {
start: (schemaId: string, recipient: string, proxyFirst?: boolean) => Promise<VerifyResult>;
}Parameter
Definition
Orange Pass Opens the Corresponding Third-Party Page to Execute the Proof Process
Parameter
Definition
Example
How to obtain the schemaId?
schema_id
schema_name
schema_description
The Extension Obtains the Proof Result and Returns It to the Page
The Page Sends the Proof Result to Its Backend, Which Validates Whether the Proof Data Meets the Requirements and Updates the Relevant Status
Parameter
Function
The Frontend Updates Its Page Based on the Status Updated by the Backend
Backend
APIs
Notary (MPC Mode)
Name
Path
Method
Proxy (Proxy Mode)
Name
Path
Method
1. Golang example
2. Verify by smart contract

Last updated