Creating a link
Links can be created at:
- the web-app,
- using the SDK
However the links is created, the process followed will be largely the same.
- Random keypair generated.
- Signature generated on deposit id to protects the funds.
- Funds are deposited into the contract with the public key.
- Deposit confirmation returned with vault address.
- ParrotLink link created.
Each time crypto is deposited, we're creating a random seed to protect the funds. This is used to generate signatures, and the public key, which is stored along with the funds in vault contracts.
Once confirmation of the deposit is received, a link is created using the hashed signature, the deposit ID, and it includes the deposited value.