bsp-network
Version:
SDK for writing node.js applications to interact with bsp network. This package encapsulates the APIs to connect to a bsp network, submit transactions and perform queries against the ledger.
15 lines (14 loc) • 441 B
TypeScript
/**
* Copyright 2019 IBM All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
import { User } from 'fabric-common';
import { Identity } from './identity';
import { IdentityData } from './identitydata';
export interface IdentityProvider {
readonly type: string;
fromJson(data: IdentityData): Identity;
toJson(identity: Identity): IdentityData;
getUserContext(identity: Identity, name: string): Promise<User>;
}