Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

signing-lib

This library provides:

export interface SigningDriverInterface {
    partyMode: PartyMode
    signingProvider: SigningProvider
    controller: (authContext: AuthContext | undefined) => Methods
}

The controller function should be an implementation of buildController from ./src/rpc-gen/index.ts which takes an optional AuthContext.

To see a simple example of a signing driver, see core/singing-internal.

Important Note

Other than the optional internalTxId parameter in signTransaction, ALL instances of txId refer to the TransactionID given by the signing provider, not the Wallet Gateway.

While some signing providers allow an external transaction to be stored with the transaction, this cannot be relied upon, therefore in order to lookup specific transactions, the Wallet Gateway must store and use the transaction ID given by the signing provider (which is returned by the signTransaction method).