Skip to content

ECPair Class v1.0 Spec

Gabriel Cardona edited this page Jun 18, 2018 · 1 revision

ECPair

fromWIF

Arguments

  1. privateKeyWIF: String

Return Value

  1. ecpair: ECPair

toWIF

Arguments

  1. ecpair: ECPair

Return Value

  1. wif: String

sign

Arguments

  1. ecpair: ECPair
  2. buffer: Buffer

Return Value

  1. ecsignature: ECSignature

verify

Arguments

  1. ecpair: ECPair
  2. buffer: Buffer
  3. signature: ECSignature

Return Value

  1. verified: Boolean

fromPublicKey

Arguments

  1. pubkeyBuffer: Buffer

Return Value

  1. ecpair: ECPair

toPublicKey

Arguments

  1. ecpair: ECPair

Return Value

  1. publicKey: Buffer

toLegacyAddress

Arguments

  1. ecpair: ECPair

Return Value

  1. legacyAddress: String

toCashAddress

Arguments

  1. ecpair: ECPair

Return Value

  1. cashAddress: String