calcInitialHash.ts 432 B

12345678910
  1. export default (tier, covert_domain_b, covert_port, covert_ssl, begin_time) => {
  2. return listhash([b'Cash Fusion Session',
  3. Protocol.VERSION,
  4. tier.to_bytes(8,'big'),
  5. covert_domain_b,
  6. covert_port.to_bytes(4,'big'),
  7. b'\x01' if covert_ssl else b'\0',
  8. begin_time.to_bytes(8,'big'),
  9. ])
  10. }