0.2.1 • Published 1 month ago

@hyperledger/fabric-protos v0.2.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 month ago

fabric-protos

Node bindings for Hyperledger Fabric protocol buffers

Usage

Import the packages you need from the protos, following the same structure as the protos themselves. For example:

import { common, ledger, msp, orderer, peer } from '@hyperledger/fabric-protos';

Then refer to the implementations you want within those packages. For example:

const proposal = peer.Proposal.deserializeBinary(bytes);
const header = common.Header.deserializeBinary(proposal.getHeader_asU8());
const channelHeader = common.ChannelHeader.deserializeBinary(header.getChannelHeader_asU8());
const channelName = channelHeader.getChannelId();

See JavaScript Generated Code for more details.

0.3.3

4 months ago

0.3.2

5 months ago

0.3.1

8 months ago

0.2.1

9 months ago

0.3.0

2 years ago

0.1.6

1 year ago

0.2.0

1 year ago

0.1.2

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.5

2 years ago