Concepts

This SDK provides the functionality of handling all the API request, Transaction signing on the client side by storing the vault on the client side in encrypted form.

After successful login you just have to create the Keyring Object and using this object you can perform all the operation related to wallet. For more check Keyring Controller.

Vault structure

This is the vault structure we are using to store users keys. This is stored at client side in encrypted form. For mobile we are using @react-native-async-storage/async-storage

{
    mnemonic: "",
    triaName: {
        ethereum: {
            publicKey: "",
            privateKey: "",
        },
        solana: {
            publicKey: "",
            privateKey: "",
        },
        ...
    },
    subTriaName: {
        solana: {
            publicKey: "",
            privateKey: "",
        },
    }
}

Last updated