Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@ddn/ddn-evidence

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ddn/ddn-evidence

DDN数据存证资产包

latest
npmnpm
Version
1.0.2
Version published
Weekly downloads
1
-87.5%
Maintainers
4
Weekly downloads
 
Created
Source

DDN Evidence

交易体创建方法:
ddnJS.assetPlugin.createPluginAsset(trsType, assetInfo, secret, secondSecret)
参数:
  trsType: 创建交易的类型
  assetInfo: 创建交易的具体内容
  secret: 账号的密码
  secondSecret: 二级密码;(可不传)
返回:
  创建成功的交易体对象

提交存证数据

trsType: 10
assetInfo: {  
                ipid: "ipid12345",  //存证ipid,唯一
                title: "测试",      //存证内容标题
                hash: "xxxxxxxx",   //存证内容哈希值
                author: "wangxm",   //存证内容作者
                url: "http://www.test.com/test.doc",    //存证内容链接地址
                type: ".doc",   //存证文档类型
                description: "这是一个存证测试",    //描述
                tags: "测试 存证",  //标签,多个用空格分隔
                size: "102400"  //内容字节大小
           }  

FAQs

Package last updated on 21 Aug 2019

Did you know?

Socket

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