diff --git a/Java/src/main/java/org/ciyam/at/FunctionCode.java b/Java/src/main/java/org/ciyam/at/FunctionCode.java index ba530ae..307f9a9 100644 --- a/Java/src/main/java/org/ciyam/at/FunctionCode.java +++ b/Java/src/main/java/org/ciyam/at/FunctionCode.java @@ -114,8 +114,8 @@ public enum FunctionCode { } }, /** - * 0x0108
- * Copies A into addr to addr+3 + * Copies A into addr to addr+3
+ * 0x0108 addr */ GET_A_IND(0x0108, 1, false) { @Override @@ -133,8 +133,8 @@ public enum FunctionCode { } }, /** - * 0x0108
- * Copies B into addr to addr+3 + * Copies B into addr to addr+3
+ * 0x0109 addr */ GET_B_IND(0x0109, 1, false) { @Override @@ -276,8 +276,8 @@ public enum FunctionCode { } }, /** - * 0x0108
- * Copies addr to addr+3 into A + * Copies addr to addr+3 into A
+ * 0x011c addr */ SET_A_IND(0x011c, 1, false) { @Override @@ -295,8 +295,8 @@ public enum FunctionCode { } }, /** - * 0x0108
- * Copies addr to addr+3 into B + * Copies addr to addr+3 into B
+ * 0x011d addr */ SET_B_IND(0x011d, 1, false) { @Override @@ -527,7 +527,7 @@ public enum FunctionCode { }, /** * MD5 data into B
- * 0x0200 start-addr byte-length + * 0x0200 start-addr byte-length
* MD5 hash stored in B1 and B2. B3 and B4 are zeroed. */ MD5_INTO_B(0x0200, 2, false) { @@ -553,7 +553,7 @@ public enum FunctionCode { /** * Check MD5 of data matches B
* 0x0201 start-addr byte-length
- * Other MD5 hash is in B1 and B2. B3 and B4 are ignored. + * Other MD5 hash is in B1 and B2. B3 and B4 are ignored.
* Returns 1 if true, 0 if false */ CHECK_MD5_WITH_B(0x0201, 2, true) { @@ -583,7 +583,7 @@ public enum FunctionCode { }, /** * RIPE-MD160 data into B
- * 0x0202 start-addr byte-length + * 0x0202 start-addr byte-length
* RIPE-MD160 hash stored in LSB of B1 and all of B2 and B3. B4 is zeroed. */ RMD160_INTO_B(0x0202, 2, false) { @@ -609,7 +609,7 @@ public enum FunctionCode { /** * Check RIPE-MD160 of data matches B
* 0x0203 start-addr byte-length
- * Other RIPE-MD160 hash is in LSB of B1 and all of B2 and B3. B4 is ignored. + * Other RIPE-MD160 hash is in LSB of B1 and all of B2 and B3. B4 is ignored.
* Returns 1 if true, 0 if false */ CHECK_RMD160_WITH_B(0x0203, 2, true) { @@ -641,7 +641,7 @@ public enum FunctionCode { }, /** * SHA256 data into B
- * 0x0204 start-addr byte-length + * 0x0204 start-addr byte-length
* SHA256 hash is stored in B1 through B4. */ SHA256_INTO_B(0x0204, 2, false) { @@ -667,7 +667,7 @@ public enum FunctionCode { /** * Check SHA256 of data matches B
* 0x0205 start-addr byte-length
- * Other SHA256 hash is in B1 through B4. + * Other SHA256 hash is in B1 through B4.
* Returns 1 if true, 0 if false */ CHECK_SHA256_WITH_B(0x0205, 2, true) { @@ -699,7 +699,7 @@ public enum FunctionCode { }, /** * HASH160 data into B
- * 0x0206 start-addr byte-length + * 0x0206 start-addr byte-length
* Bitcoin's HASH160 hash is equivalent to RMD160(SHA256(data)).
* HASH160 hash stored in LSB of B1 and all of B2 and B3. B4 is zeroed. */ @@ -793,8 +793,8 @@ public enum FunctionCode { } }, /** - * 0x0303
- * Put previous block's hash in A + * Put previous block's hash in A
+ * 0x0303 */ PUT_PREVIOUS_BLOCK_HASH_INTO_A(0x0303, 0, false) { @Override @@ -803,8 +803,8 @@ public enum FunctionCode { } }, /** - * 0x0304
* Put transaction (to this AT) after timestamp in A, or zero if none
+ * 0x0304 timestamp
* a-k-a "A_To_Tx_After_Timestamp" */ PUT_TX_AFTER_TIMESTAMP_INTO_A(0x0304, 1, false) { @@ -847,8 +847,8 @@ public enum FunctionCode { } }, /** - * 0x0308
* Generate random number using transaction in A
+ * 0x0308
* Returns 0xffffffffffffffff in A not valid transaction
* Can sleep to use next block as source of entropy */ @@ -869,8 +869,8 @@ public enum FunctionCode { } }, /** - * 0x0309
* Put 'message' from transaction in A into B
+ * 0x0309
* If transaction has no 'message' then zero B
* Example 'message' could be 256-bit shared secret */ @@ -881,8 +881,8 @@ public enum FunctionCode { } }, /** - * 0x030a
- * Put sender/creator address from transaction in A into B + * Put sender/creator address from transaction in A into B
+ * 0x030a */ PUT_ADDRESS_FROM_TX_IN_A_INTO_B(0x030a, 0, false) { @Override @@ -891,8 +891,8 @@ public enum FunctionCode { } }, /** - * 0x030b
- * Put AT's creator's address into B + * Put AT's creator's address into B
+ * 0x030b */ PUT_CREATOR_INTO_B(0x030b, 0, false) { @Override @@ -922,8 +922,8 @@ public enum FunctionCode { } }, /** - * 0x0402
* Pay fee-inclusive amount to account address in B
+ * 0x0402 amount
* Reduces amount to current balance rather than failing due to insufficient funds */ PAY_TO_ADDRESS_IN_B(0x0402, 1, false) { @@ -944,8 +944,8 @@ public enum FunctionCode { } }, /** - * 0x0403
- * Pay all remaining funds to account address in B + * Pay all remaining funds to account address in B
+ * 0x0403 */ PAY_ALL_TO_ADDRESS_IN_B(0x0403, 0, false) { @Override @@ -958,8 +958,8 @@ public enum FunctionCode { } }, /** - * 0x0404
* Pay previous balance to account address in B
+ * 0x0404
* Reduces amount to current balance rather than failing due to insufficient funds */ PAY_PREVIOUS_TO_ADDRESS_IN_B(0x0404, 0, false) { @@ -980,8 +980,8 @@ public enum FunctionCode { } }, /** - * 0x0405
- * Send A as a message to address in B + * Send A as a message to address in B
+ * 0x0405 */ MESSAGE_A_TO_ADDRESS_IN_B(0x0405, 0, false) { @Override @@ -990,7 +990,8 @@ public enum FunctionCode { } }, /** - * 0x0406
+ * Add minutes to timestamp
+ * 0x0406 timestamp minutes
* Return 'timestamp' based on passed 'timestamp' plus minutes */ ADD_MINUTES_TO_TIMESTAMP(0x0406, 2, true) {