Write an confidential amount to the 'dst' frame, advancing the cursor 258 cells. * * Precondition: '*dst' is a valid write frame for 258 more cells; * NULL != amt; */
| 53 | * NULL != amt; |
| 54 | */ |
| 55 | static void amt(frameItem* dst, const confAmount* amt) { |
| 56 | if (writeBit(dst, EXPLICIT == amt->prefix)) { |
| 57 | skipBits(dst, 1 + 256 - 64); |
| 58 | simplicity_write64(dst, amt->explicit); |
| 59 | } else { |
| 60 | writeBit(dst, ODD_Y == amt->prefix); |
| 61 | writeHash(dst, &amt->confidential); |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | /* Write an optional confidential nonce to the 'dst' frame, advancing the cursor 259 cells. |
| 66 | * |
no test coverage detected