@@ -76,6 +76,7 @@ You may refer to the e2e test cases in the `tests/bruno/e2e` directory for examp
7676 * [ Type ` Currency ` ] ( #type-currency )
7777 * [ Type ` GetPaymentCommandResult ` ] ( #type-getpaymentcommandresult )
7878 * [ Type ` Hash256 ` ] ( #type-hash256 )
79+ * [ Type ` HashAlgorithm ` ] ( #type-hashalgorithm )
7980 * [ Type ` HopHint ` ] ( #type-hophint )
8081 * [ Type ` HopRequire ` ] ( #type-hoprequire )
8182 * [ Type ` Htlc ` ] ( #type-htlc )
@@ -390,7 +391,7 @@ Adds a TLC to a channel.
390391* ` amount ` - <em >` u128 ` </em >, The amount of the TLC
391392* ` payment_hash ` - <em >[ Hash256] ( #type-hash256 ) </em >, The payment hash of the TLC
392393* ` expiry ` - <em >` u64 ` </em >, The expiry of the TLC
393- * ` hash_algorithm ` - <em >` Option<HashAlgorithm> ` </em >, The hash algorithm of the TLC
394+ * ` hash_algorithm ` - <em >Option<[ HashAlgorithm] ( #type-hashalgorithm ) > </em >, The hash algorithm of the TLC
394395
395396##### Returns
396397
@@ -528,7 +529,7 @@ Get the node information.
528529* ` channel_count ` - <em >` u32 ` </em >, The number of channels associated with the node, serialized as a hexadecimal string.
529530* ` pending_channel_count ` - <em >` u32 ` </em >, The number of pending channels associated with the node, serialized as a hexadecimal string.
530531* ` peers_count ` - <em >` u32 ` </em >, The number of peers connected to the node, serialized as a hexadecimal string.
531- * ` udt_cfg_infos ` - <em >` UdtCfgInfos ` </em >, Configuration information for User-Defined Tokens (UDT) associated with the node.
532+ * ` udt_cfg_infos ` - <em >[ UdtCfgInfos] ( #type-udtcfginfos ) </em >, Configuration information for User-Defined Tokens (UDT) associated with the node.
532533
533534---
534535
@@ -556,7 +557,7 @@ Generates a new invoice.
556557* ` final_expiry_delta ` - <em >` Option<u64> ` </em >, The final HTLC timeout of the invoice, in milliseconds.
557558 Minimal value is 16 hours, and maximal value is 14 days.
558559* ` udt_type_script ` - <em >` Option<Script> ` </em >, The UDT type script of the invoice.
559- * ` hash_algorithm ` - <em >` Option<HashAlgorithm> ` </em >, The hash algorithm of the invoice.
560+ * ` hash_algorithm ` - <em >Option<[ HashAlgorithm] ( #type-hashalgorithm ) > </em >, The hash algorithm of the invoice.
560561* ` allow_mpp ` - <em >` Option<bool> ` </em >, Whether allow payment to use MPP
561562* ` allow_trampoline_routing ` - <em >` Option<bool> ` </em >, Whether allow payment to use trampoline routing
562563
@@ -1089,7 +1090,7 @@ The attributes of the invoice
10891090* ` FallbackAddr ` - <em >` String ` </em >, The fallback address of the invoice
10901091* ` UdtScript ` - <em >[ CkbScript] ( #type-ckbscript ) </em >, The udt type script of the invoice
10911092* ` PayeePublicKey ` - <em >` PublicKey ` </em >, The payee public key of the invoice
1092- * ` HashAlgorithm ` - <em >` HashAlgorithm ` </em >, The hash algorithm of the invoice
1093+ * ` HashAlgorithm ` - <em >[ HashAlgorithm] ( #type-hashalgorithm ) </em >, The hash algorithm of the invoice
10931094* ` Feature ` - <em >` Vec<String> ` </em >, The feature flags of the invoice
10941095* ` PaymentSecret ` - <em >[ Hash256] ( #type-hash256 ) </em >, The payment secret of the invoice
10951096---
@@ -1302,6 +1303,18 @@ A 256-bit hash digest, used as identifier of channel, payment, transaction hash
13021303
13031304
13041305
1306+ ---
1307+
1308+ <a id =" #type-hashalgorithm " ></a >
1309+ ### Type ` HashAlgorithm `
1310+
1311+ HashAlgorithm is the hash algorithm used in the hash lock.
1312+
1313+
1314+ #### Enum with values of
1315+
1316+ * ` CkbHash ` - The default hash algorithm, CkbHash
1317+ * ` Sha256 ` - The sha256 hash algorithm
13051318---
13061319
13071320<a id =" #type-hophint " ></a >
@@ -1388,7 +1401,7 @@ The Node information.
13881401 When a Node is online this timestamp will be updated to the latest value.
13891402* ` chain_hash ` - <em >[ Hash256] ( #type-hash256 ) </em >, The chain hash of the node.
13901403* ` auto_accept_min_ckb_funding_amount ` - <em >` u64 ` </em >, The minimum CKB funding amount for automatically accepting open channel requests.
1391- * ` udt_cfg_infos ` - <em >` UdtCfgInfos ` </em >, The UDT configuration infos of the node.
1404+ * ` udt_cfg_infos ` - <em >[ UdtCfgInfos] ( #type-udtcfginfos ) </em >, The UDT configuration infos of the node.
13921405---
13931406
13941407<a id =" #type-paymentcustomrecords " ></a >
@@ -1563,7 +1576,7 @@ Data needed to authorize and execute a Time-Locked Contract (TLC) settlement tra
15631576#### Fields
15641577
15651578* ` tlc_id ` - <em >[ TLCId] ( #type-tlcid ) </em >, The ID of the TLC (either offered or received)
1566- * ` hash_algorithm ` - <em >` HashAlgorithm ` </em >, The hash algorithm used for the TLC
1579+ * ` hash_algorithm ` - <em >[ HashAlgorithm] ( #type-hashalgorithm ) </em >, The hash algorithm used for the TLC
15671580* ` payment_amount ` - <em >` u128 ` </em >, The amount of CKB/UDT involved in the TLC
15681581* ` payment_hash ` - <em >[ Hash256] ( #type-hash256 ) </em >, The hash of the payment preimage
15691582* ` expiry ` - <em >` u64 ` </em >, The expiry time for the TLC in milliseconds
@@ -1604,9 +1617,9 @@ The UDT argument info which is used to identify the UDT configuration
16041617#### Fields
16051618
16061619* ` name ` - <em >` String ` </em >, The name of the UDT.
1607- * ` script ` - <em >` UdtScript ` </em >, The script of the UDT.
1620+ * ` script ` - <em >[ UdtScript] ( #type-udtscript ) </em >, The script of the UDT.
16081621* ` auto_accept_amount ` - <em >` Option<u128> ` </em >, The minimum amount of the UDT that can be automatically accepted.
1609- * ` cell_deps ` - <em >` Vec<UdtDep> ` </em >, The cell deps of the UDT.
1622+ * ` cell_deps ` - <em >Vec<[ UdtDep] ( #type-udtdep ) > </em >, The cell deps of the UDT.
16101623---
16111624
16121625<a id =" #type-udtcelldep " ></a >
@@ -1638,7 +1651,7 @@ Udt script on-chain dependencies.
16381651
16391652#### Fields
16401653
1641- * ` cell_dep ` - <em >` Option<UdtCellDep> ` </em >, cell dep described by out_point.
1654+ * ` cell_dep ` - <em >Option<[ UdtCellDep] ( #type-udtcelldep ) > </em >, cell dep described by out_point.
16421655* ` type_id ` - <em >` Option<Script> ` </em >, cell dep described by type ID.
16431656---
16441657
0 commit comments