Convert a currency amount represented in big units (btc, eth, rmg, xrp, xlm) to base units (satoshi, wei, atoms, drops, stroops)
Derive a hardened child public key from a master key seed using an additional seed for randomness.
Due to technical differences between keypairs on the ed25519 curve and the secp256k1 curve, only hardened private key derivation is supported.
Explain/parse transaction
Attempt to resolve an account id into a stellar account Only works for accounts that can be resolved by our federation server
stellar account id
Attempt to resolve a stellar address into a stellar account If address domain matches bitgo's then resolve on our federation server Else, make the request to the federation server hosting the address
stellar address to look for
Fetch fee estimate information from the server
The params passed into the function
The info returned from the merchant server
Generate a new key pair on the ed25519 curve
generated pub and prv
Process address into address and memo id
the address
object containing address and memo id
Factor between the base unit and its smallest subdivison
Transaction fee for each operation
transaction fee in stroops
Get an instance of FederationServer for BitGo lookups
instance of BitGo Federation Server
Get extra parameters for prebuilding a tx. Add things like hop transaction params
Identifier for the coin family
Url at which the stellar federation server can be reached
Minimum balance of a 2-of-3 multisig wallet
minimum balance in stroops
Get decoded ed25519 private key from raw data
Raw private key
Encoded private key
Get decoded ed25519 public key from raw data
Raw public key
Encoded public key
Return a Stellar Asset in coin:token form (i.e. (t)xlm:-
instance of Stellar Asset
Generates Stellar keypairs from the user key and backup key
Return boolean indicating whether input is valid public key for the coin
the pub to be checked
is it valid?
Evaluates whether a memo is valid
true if value and type are a valid
Return boolean indicating whether a memo id is valid
memo id
true if memo id is valid
Return wether the given m of n wallet signers/ key amounts are valid for the coin
Return boolean indicating whether input is valid private key for the coin
the prv to be checked
is it valid?
Return boolean indicating whether input is valid public key for the coin.
the pub to be checked
is it valid?
Evaluate whether a stellar username has valid format This method is used by the client when a stellar address is being added to a wallet Example of a common stellar username: foo@bar.baz The above example would result in the Stellar address: foo@bar.baz*bitgo.com
stellar username
true if stellar username is valid
Specifies what key we will need for signing - right now we just need the user key.
Create a new wallet object from a wallet data object
Validate and return address with appended memo id
address with memo id
Modify prebuild after receiving it from the server. Add things like nlocktime
Perform additional checks before adding a bitgo key. Base controller is a no-op, but coin-specific controller may do something
Coin-specific things done before signing a transaction, i.e. verification
Builds a funds recovery transaction without BitGo
Sign message with private key
Assemble keychain and half-sign prebuilt transaction
Extend walletParams with extra params required for generating an XLM wallet
Stellar wallets have three keychains on them. Two are generated by the platform, and the last is generated by the user. Initially, we need a root prv to generate the account, which must be distinct from all three keychains on the wallet. If a root prv is not provided, a random one is generated.
Check whether a coin supports blockTarget for transactions to be included in
Flag for sending data along with transactions
True if okay to send tx data (ETH), false otherwise
Flag for sending value of 0.
True if okay to send 0 value, false otherwise
Check if address is a valid XLM address, and then make sure it matches the root address.
Verifies if signature for message is valid.
public key
signed message
signature to verify
true if signature is valid.
Verify that a transaction prebuild complies with the original intention
Generated using TypeDoc
Convert a currency amount represented in base units (satoshi, wei, atoms, drops, stroops) to big units (btc, eth, rmg, xrp, xlm)