libp2p/crypto/secp

    Dark Mode
    Internal
Search:
Group by:
  Source   Edit

Procs

proc getBytes(key: SkPublicKey): seq[byte] {.inline, ...raises: [], tags: [].}
Serialize Secp256k1 public key and return it.   Source   Edit
proc getPublicKey(key: SkPrivateKey): SkPublicKey {....raises: [], tags: [].}
Calculate and return Secp256k1 public key from private key key.   Source   Edit
proc init(key: var SkPublicKey; data: openArray[byte]): SkResult[void] {.
    ...raises: [], tags: [].}
Initialize Secp256k1 public key key from raw binary representation data.   Source   Edit
proc init(key: var SkPublicKey; data: string): SkResult[void] {....raises: [],
    tags: [].}
Initialize Secp256k1 public key key from hexadecimal string representation data.   Source   Edit
proc init(t: typedesc[SkPublicKey]; data: openArray[byte]): SkResult[SkPublicKey] {.
    ...raises: [].}

Initialize Secp256k1 public key from raw binary representation data.

Procedure returns public key on success.

  Source   Edit
proc init(t: typedesc[SkPublicKey]; data: string): SkResult[SkPublicKey] {.
    ...raises: [].}

Initialize Secp256k1 public key from hexadecimal string representation data.

Procedure returns public key on success.

  Source   Edit
proc toBytes(key: SkPublicKey; data: var openArray[byte]): SkResult[int] {.
    ...raises: [], tags: [].}

Serialize Secp256k1 public key key to raw binary form and store it to data.

Procedure returns number of bytes (octets) needed to store Secp256k1 public key.

  Source   Edit