UNPKG

fabric-network

Version:

SDK for writing node.js applications to interact with Hyperledger Fabric. This package encapsulates the APIs to connect to a Fabric network, submit transactions and perform queries against the ledger.

11 lines (10 loc) 398 B
import { ICryptoSuite, User } from 'fabric-common'; import { Identity } from './identity'; import { IdentityData } from './identitydata'; export interface IdentityProvider { readonly type: string; getCryptoSuite(): ICryptoSuite; fromJson(data: IdentityData): Identity; toJson(identity: Identity): IdentityData; getUserContext(identity: Identity, name: string): Promise<User>; }