Writing Consented Data
Last updated
Was this helpful?
Last updated
Was this helpful?
Understand how, after consent is given, new credentials or data can be provided to a user or recorded about them by authorized parties (like contract owners or automated systems). This covers the rules and methods for data delivery based on established consent.
Contract owners can write credentials to profiles that have consented to their contracts using:
writeCredentialToContract
: Direct credential writing
writeCredentialToContractViaSigningAuthority
: Using a signing authority
The system verifies:
The recipient has consented to the contract
The contract owner has permission to issue the boost
The contract terms allow writing in the boost's category
Consented users can sync their existing credentials to a contract using syncCredentialsToContract
.
Credential syncing allows:
Sharing existing credentials with contract owners
Organizing credentials by categories defined in the contract
Controlling exactly which credentials are shared
The sync process:
Verify the terms exist and belong to the requesting user
Ensure terms are still live (not withdrawn or expired)
Update the terms by adding the synced credentials to the shared arrays
Create a 'sync' transaction with the categorized credentials
Notify the contract owner