Neutral Political Machine

    @hanchon/evmos-signer
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.0 • Public • Published

    Evmos signer

    A typescript signer for the evmos networks, it supports secp256k1 and eth_secp256k1 signing.

    Requirements

    • Node v15.8.0

    Installation

    yarn add @hanchon/evmos-signer

    Usage

    Signer

    import {
      signEthSecp256k1,
    } from "@hanchon/evmos-signer";
    
    const privKey = Buffer.from([
        186, 11, 156, 234, 90, 241, 218, 188, 13, 58, 202, 98, 87, 101, 244,
        128, 253, 23, 0, 180, 96, 155, 216, 190, 230, 170, 65, 163, 85, 86, 11,
        163,
    ])
    const message = Buffer.from([
        177, 240, 144, 132, 71, 52, 192, 86, 100, 12, 4, 148, 127, 217, 62, 166,
        254, 121, 39, 134, 16, 193, 151, 209, 7, 181, 85, 226, 30, 52, 62, 7,
    ])
    
    const sig = signEthSecp256k1(privKey, message)

    Build locally

    yarn install
    yarn test
    yarn build

    TODOs

    • Add secp256k1 support.

    Install

    npm i @hanchon/evmos-signer

    DownloadsWeekly Downloads

    5

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    12.4 kB

    Total Files

    11

    Last publish

    Collaborators

    • hanchon