Socket
Socket
Sign inDemoInstall

@hyperledger/fabric-protos

Package Overview
Dependencies
35
Maintainers
3
Versions
110
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @hyperledger/fabric-protos

Node bindings for Hyperledger Fabric protocol buffers


Version published
Weekly downloads
14K
decreased by-22.66%
Maintainers
3
Install size
10.8 MB
Created
Weekly downloads
 

Readme

Source

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.

FAQs

Last updated on 18 Aug 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc