Skip to content

Latest commit

 

History

History
39 lines (37 loc) · 1.12 KB

用户手册.md

File metadata and controls

39 lines (37 loc) · 1.12 KB

yum install python-devel mysql-devel

用户手册

此服务提供BAC的匿名转账功能;
1 导入/或生成fisco地址
2 生成ZKBAC地址(匿名转账所需的地址)
3 存入资产,获取utxo
4 转账
5 取出资产

转账原理

转账为两入两出模型; inputs1 ---|------output1
inputs2 ---|------output2 (zethaddress:value) utxo模型

  def joinsplit(
          self,
          mk_tree: MerkleTree,
          sender_ownership_keypair: OwnershipKeyPair,
          sender_eth_address: str,
          inputs: List[Tuple[int, ZethNote]],
          outputs: List[Tuple[ZethAddressPub, EtherValue]],
          v_in: EtherValue,
          v_out: EtherValue,
          tx_value: Optional[EtherValue] = None,
          compute_h_sig_cb: Optional[ComputeHSigCB] = None) -> str:      
function mix(
        uint256[2] memory a,
        uint256[4] memory b,
        uint256[2] memory c,
        uint256[4] memory vk,
        uint256 sigma,
        uint256[nbInputs] memory input,
        bytes[jsOut] memory ciphertexts)     

input: