@did-btc1/key-pair
    Preparing search index...

    Class KeyPair

    Encapsulates a PublicKey and a PrivateKey object as a single KeyPair object. KeyPair

    Implements

    Index

    Constructors

    Accessors

    Methods

    Constructors

    • Creates an instance of KeyPair. Must provide a at least a private key. Can optionally provide btoh a private and public key, but must be a valid pair.

      Parameters

      • privateKey: KeyPairParams = {}

        The private key object

      Returns KeyPair

    Accessors

    Methods

    • JSON representation of a KeyPair.

      Returns KeyPairJSON

      The KeyPair as a JSON object

      IKeyPair.json