How to update identity?
Process of updating an identity
Arrange Identity
Arrange identity in the format
If want to remove addresses from secondary, do not add them in the list
If want to add new addresses in secondary, add them in secondary list
If want to keep some addresses in secondary, then keep them in the data
Generate Message
Using the above arranged identity, generate a message using the below endpoint and sign it using default
address by following guide for respective chains
After generating message, you need to sign message
using appropriate functions for respective chains, check our guide for each blockchain here
There are 2 signatures needed while updating identity
currentSignature
- Will be signed by current (new)default
addresspreviousSignature
- Will be signed by previous (old)default
address, only ifdefault
is updatedIf
default
isn't updated, you need to use same signature for bothcurrentSignature
andpreviousSignature
Update Identity
After signing the message, add the generated signature in the arranged identity, at currentSignature
and previousSignature
respectively
Now, data should look something like this
Call Update Identity API
Important Note
If
default
chain isAPTOS
, then while calling this API, swapdefault
address with public key of the same address, so that we can easily verify signaturesIf
default
is changing in this request, then send previousdefault
address's public key inextraData: { publicKey: "" }
For example
satyam@martian
hasAPTOS
has default chainIn this request, we are updating it to
EVM
Signed message using
EVM
address will be incurrentSignature
Signed message using
APTOS
address will be inpreviousSignature
To verify
previousSignature
, we need to havepublicKey
of theAPTOS
address, which we will send inextraData
So now, data will look something like this
Identity should now be created, if faced with any error, check our troubleshooting guide or ask in our discord
Resolve Identity
Last updated