基于区块链的毕业设计Eth-Sig-Util – Eth信号利用率

本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计Eth-Sig-Util – Eth信号利用率 是一篇很好的国外资料

Eth-Sig-Util Eth-Sig-Util - Eth信号利用率

Eth-Sig-Util - Eth信号利用率

A small collection of ethereum signing functions.

You can find usage examples here

Available on NPM

Supported Signing Methods

Currently there is only one supported signing protocol. More will be added as standardized.

  • Personal Sign (personal_sign) geth thread

Installation

npm install eth-sig-util --save 

Methods

concatSig(v, r, s)

All three arguments should be provided as buffers.

Returns a continuous, hex-prefixed hex value for the signature, suitable for inclusion in a JSON transaction’s data field.

normalize(address)

Takes an address of either upper or lower case, with or without a hex prefix, and returns an all-lowercase, hex-prefixed address, suitable for submitting to an ethereum provider.

personalSign (privateKeyBuffer, msgParams)

msgParams should have a data key that is hex-encoded data to sign.

Returns the prefixed signature expected for calls to eth.personalSign.

recoverPersonalSignature (msgParams)

msgParams should have a data key that is hex-encoded data unsigned, and a sig key that is hex-encoded and already signed.

Returns a hex-encoded sender address.

signTypedData (privateKeyBuffer, msgParams)

Signs typed data as per EIP712.

Data should be under data key of msgParams. The method returns prefixed signature.

recoverTypedSignature ({data, sig})

Return address of a signer that did signTypedData.

Expects the same data that were used for signing. sig is a prefixed signature.

typedSignatureHash (typedData)

Return hex-encoded hash of typed data params according to EIP712 schema.

extractPublicKey (msgParams)

msgParams should have a data key that is hex-encoded data unsigned, and a sig key that is hex-encoded and already signed.

Returns a hex-encoded public key.


Eth Sig UtilEth-Sig-Util - Eth信号利用率

以太坊eth签名函数的小集合。

您可以在这里找到NPM上可用的用法示例

目前只有一个受支持的签名协议。更多将被添加为标准化。

所有三个参数都应作为缓冲区提供。

支持的签名方法安装

为签名返回一个十六进制前缀的连续十六进制值,适合包含在JSON事务的数据字段中。

  • 个人签名(Personalu Sign)geth线程

方法

npm install eth-sig-util --save 

concatSig(v,r,s)

规范化(地址)

采用大写或小写的地址,带或不带十六进制前缀,并返回一个全小写、十六进制前缀的地址,适合提交给以太坊eth提供商。

msgParams应该有一个十六进制编码的数据键来签名。

个性化签名(privateKeyBuffer,msgParams)

返回调用的预期前缀签名个人签名.

恢复个性化签名(msgParams)

msgParams应该有一个十六进制编码的无符号数据密钥和一个十六进制编码的已签名的sig密钥。

返回十六进制编码的发件人地址。

签名类型数据(privateKeyBuffer,msgParams)

根据EIP712对键入的数据进行签名。

数据应该在msgParams的数据键下。方法返回带前缀的签名。

恢复类型签名({data,sig})

没有signTypedData的签名者的返回地址。

需要与签名时使用的数据相同的数据。sig是一个带前缀的签名。

类型签名hash(typedData)

根据EIP712模式返回类型化数据参数的十六进制编码哈希。

msgParams应该有一个十六进制编码的无符号数据密钥和一个十六进制编码的已签名的sig密钥。

提取公钥(msgParams)

返回十六进制编码的公钥。

extractPublicKey (msgParams)

msgParams should have a data key that is hex-encoded data unsigned, and a sig key that is hex-encoded and already signed.

Returns a hex-encoded public key.

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/19818.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计Eth-Sig-Util – Eth信号利用率

提供最优质的资源集合

立即查看 了解详情