Example #1
0
 def encode_payment_data(payment_secret, total_msat):
     body = (Namespace.encode_bytes(payment_secret) +
             Namespace.encode_tu64(total_msat))
     return Tlv(8, body).encode()
Example #2
0
 def encode_amt_to_forward(amt_to_forward):
     return Tlv(2, Namespace.encode_tu64(amt_to_forward)).encode()