Calculates the amount which can be activate
Derives a new pubkey Requires saving afterwards
Second stage in updating wallet. Takes a read trt.dartRead recorder. Creates an array of DARTindices from readIndicesByPubkey recorder If some indices were found in the wallet but not in the trt, the indices are removed from the wallet. If some indices were found in the trt but not in the wallet, the indices are put into a new dartRead request.
Adds a bill with the given amount to the wallet. Note should only be used for testing
Calcutales the locked amount in the network
Used for reading contract from TRT. Creates a trt.dartRead command for the TRT. Takes hash of given contract and creates dart index with #contract for lookup in TRT These indices are put into the trt.dartRead specifying the command.
Used for first step in updating wallet from TRT. Creates a trt.dartRead command for the TRT. Takes all derivers in the wallet and convert the pubkeys to #pubkey for lookup in TRT These indices are put into the trt.dartRead specifying the command.
Calcutales the total amount
Updates the wallet based on the received dartRead