The application relates to the technical field of block chain, and provides an electronic seal signing method, device, computer equipment and storage medium based on the intelligent contract of block chain. The method includes: acquiring contract information and the corresponding organization identification of the contract information, generating an intelligent contract according to the contract information and the organization identification, the intelligent contract includes the electronic seal key, writing the intelligent contract into the block chain, receiving the electronic seal signature request sent by the terminal, and carrying out the electronic seal signature request in the block chain. The block chain is used for consensus on the signing request of the electronic seal; when the consensus is passed, the target electronic seal key is obtained; when the target electronic seal key is identical with the electronic seal key in the intelligent contract, the intelligent contract is executed and the electronic contract with the signed electronic seal is obtained. The method of this application can prevent the incorrect signature of the electronic seal.
【技术实现步骤摘要】
基于区块链智能合约的电子印章签署方法和装置
本申请涉及区块链
,特别是涉及一种基于区块链智能合约的电子印章签署方法和装置。
技术介绍
两方或多方签署合同时,经常需要在合同上加盖印章,以确保合同的真实性及有效性。而随着计算机技术的飞速发展,传统的纸质合同逐渐被电子合同取代,传统技术中,对电子合同加盖印章,通常是直接调用签署电子印章的接口,这种方式存在安全风险,当接口被恶意攻击时,很容易引起错误电子印章的错误签署。
技术实现思路
基于此,有必要针对上述技术问题,提供一种能够防止电子印章错误签署的基于区块链智能合约的电子印章签署方法和装置。一种基于区块链智能合约的电子印章签署方法,所述方法包括:获取合同信息及所述合同信息对应的机构标识,根据所述合同信息及所述机构标识生成智能合约,所述智能合约中包括电子印章密钥;将所述智能合约写入区块链中;接收终端发送的电子印章签署请求,对所述电子印章签署请求进行共识校验;当共识校验通过后,获取目标电子印章密钥,当所述目标电子印章密钥与所述智能合约中的电子印章密钥一致时,执行所述智能合约,得到已签署电子印章的电子合同。在其中一个实施例中,所述电子印章签署请求携带当前机构标识,所述获取目标电子印章密钥之前,包括:根据所述当前机构标识查找对应的第一电子印章子密钥,并接收区块链节点返回的所述当前机构标识对应的第二电子印章子密钥;所述获取目标电子印章密钥,包括:将所述第一电子印章子密钥与所述第二电子印章子密钥按照预设的顺序进行组合,得到所述目标电子印章密钥。在其中一个实施例中,所述接收终端发送的电子印章签署请求之前,包括:接收终端发送的 ...
【技术保护点】
1.一种基于区块链智能合约的电子印章签署方法,所述方法包括:获取合同信息及所述合同信息对应的机构标识,根据所述合同信息及所述机构标识生成智能合约,所述智能合约中包括电子印章密钥;将所述智能合约写入区块链中;接收终端发送的电子印章签署请求,对所述电子印章签署请求进行共识校验;当共识校验通过后,获取目标电子印章密钥,当所述目标电子印章密钥与所述智能合约中的电子印章密钥一致时,执行所述智能合约,得到已签署电子印章的电子合同。
【技术特征摘要】
1.一种基于区块链智能合约的电子印章签署方法,所述方法包括:获取合同信息及所述合同信息对应的机构标识,根据所述合同信息及所述机构标识生成智能合约,所述智能合约中包括电子印章密钥;将所述智能合约写入区块链中;接收终端发送的电子印章签署请求,对所述电子印章签署请求进行共识校验;当共识校验通过后,获取目标电子印章密钥,当所述目标电子印章密钥与所述智能合约中的电子印章密钥一致时,执行所述智能合约,得到已签署电子印章的电子合同。2.根据权利要求1所述的方法,其特征在于,所述电子印章签署请求携带当前机构标识,所述获取目标电子印章密钥之前,包括:根据所述当前机构标识查找对应的第一电子印章子密钥,并接收区块链节点返回的所述当前机构标识对应的第二电子印章子密钥;所述获取目标电子印章密钥,包括:将所述第一电子印章子密钥与所述第二电子印章子密钥按照预设的顺序进行组合,得到所述目标电子印章密钥。3.根据权利要求1所述的方法,其特征在于,所述接收终端发送的电子印章签署请求之前,包括:接收终端发送的电子合同生成请求,所述电子合同生成请求中携带场景标识、用户标识;根据所述场景标识查找对应的合同模板及合同要素;根据所述用户标识查找所述合同要素对应的字段信息;根据所述合同模板、所述合同要素及所述字段信息生成电子合同。4.根据权利要求1至3任意一项所述的方法,其特征在于,所述根据所述合同信息及所述机构标识生成智能合约,包括:根据所述合同信息和所述机构标识生成智能合约文本;根据所述智能合约文本生成初始智能合约,并对所述初始智能合约进行形式化验证,当验证通过时,得到所述智能合约。5.根据权利要求1所述的方法,其特征在于,所述将所述智能合约写入区块链中,包括:通过对等网络的方式将所述智能合约扩散到所述区块链中,所述区块链用于对所述智能合约进行共识;当所述区块链在预设时间内对...
【专利技术属性】
技术研发人员:臧磊,傅婧,郭鹏程,
申请(专利权)人:深圳壹账通智能科技有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。