To join Protocol One, you need an invitation from an existing network member. The network operates on a trust graph where each new member must be vouched for by at least one existing member.
// Request network access
const invitation = await p1.requestAccess({
invitationCode: 'xxxx-xxxx-xxxx-xxxx',
publicKey: myPublicKey
});
// Accept network invitation
const connection = await p1.acceptInvitation(invitation);
Identity in Protocol One is established through cryptographic signatures and trust attestations from other network members.
// Generate identity proof
const proof = await p1.generateProof({
claim: 'identity',
attributes: ['name', 'key']
});
// Verify identity proof
const isValid = await p1.verifyProof(proof);
Transactions in Protocol One are secure, encrypted messages between trusted parties.
// Create a new transaction
const tx = await p1.createTransaction({
recipient: recipientId,
amount: 100,
memo: 'Payment for services'
});
// Sign and broadcast transaction
const receipt = await p1.broadcastTransaction(tx);
Full API documentation is available for developers integrating with Protocol One.
For complete reference documentation, please see the API docs in the developer portal.