Patent attributes
A blockchain-based resource transfer method, includes: when a resource transfer condition is satisfied, determining a first amount of a to-be-transferred first resource; determining a second amount of a to-be-transferred second resource according to the first amount of the first resource, wherein a type of the first resource is different from a type of the second resource; initiating, by a resource transferor, a transaction request to a blockchain, to transfer the to-be-transferred second resource to a resource transferee, wherein the transaction request comprises first encrypted amount information obtained by encrypting the second amount of the second resource based on a first encrypting function, wherein inputs of the first encrypting function include the second amount of the second resource and a public key of the resource transferee; and after the blockchain verifies the transaction request, executing the transaction request, transferring the to-be-transferred second resource to the resource transferee, and recording an execution result of the transfer on the blockchain. Therefore, privacy information of both a resource transferor and transferee can be protected during resource transfer.