Options
All
  • Public
  • Public/Protected
  • All
Menu

@iov/rise Documentation

Index

Variables

Const passphraseToKeypair

passphraseToKeypair: passphraseToKeypair = Derivation.passphraseToKeypair

RISE-specific passphrase to Ed25519 keypair derivation

"passphrase" is RISE's word for an autogenerated 12 word english BIP39 mnemonic encoded as a string. Since the BIP39 property is not used for anything but validation in the user interface we work with plain strings here.

Functions

createRiseConnector

  • createRiseConnector(url: string, expectedChainId?: ChainId): ChainConnector<RiseConnection>

generateNonce

  • generateNonce(): Nonce

isValidAddress

  • isValidAddress(address: string): boolean

pubkeyToAddress

  • pubkeyToAddress(pubkey: Uint8Array): Address

Object literals

Const constants

constants: object

addressSuffix

addressSuffix: string = "R"

primaryTokenFractionalDigits

primaryTokenFractionalDigits: number = 8

primaryTokenName

primaryTokenName: string = "RISE"

primaryTokenTicker

primaryTokenTicker: string & As<"token-ticker"> = "RISE" as TokenTicker

transactionSerializationOptions

transactionSerializationOptions: object

maxMemoLength

maxMemoLength: number = 64

Const riseCodec

riseCodec: object

isValidAddress

isValidAddress: isValidAddress = isValidAddress

bytesToPost

  • bytesToPost(signed: SignedTransaction): PostableBytes

bytesToSign

  • bytesToSign(unsigned: UnsignedTransaction, nonce: Nonce): SigningJob

identifier

  • identifier(signed: SignedTransaction): TransactionId

identityToAddress

  • identityToAddress(identity: Identity): Address
  • Address string, e.g. 10145108642177909005R

    Parameters

    • identity: Identity

    Returns Address

parseBytes

  • parseBytes(bytes: PostableBytes, chainId: ChainId): SignedTransaction
  • Recovers bytes (UTF-8 encoded JSON) from the blockchain into a format we can use

    Parameters

    • bytes: PostableBytes
    • chainId: ChainId

    Returns SignedTransaction

Generated using TypeDoc