/** * Build the unsigned payload for a TEXT_NOTE — everything that gets hashed and signed. * Format: ORS\x00 + pubkey(32) + kind(1) + content_bytes (no sig) */ export declare function buildUnsignedPayload(content: string, pubkey: Uint8Array): Uint8Array; /** * Build the unsigned payload for a PROFILE_UPDATE — everything that gets hashed and signed. * Format: ORS\x00 + pubkey(32) + kind(1=0x02) + propertyKind(1) + value_bytes (no sig) */ export declare function buildProfileUpdateUnsignedPayload(propertyKind: number, value: string | Uint8Array, pubkey: Uint8Array): Uint8Array; /** * Build the unsigned payload for a TEXT_REPLY — everything that gets hashed and signed. * Format: ORS\x00 + pubkey(32) + kind(1=0x03) + parentTxid(32) + content_bytes (no sig) */ export declare function buildReplyUnsignedPayload(content: string, pubkey: Uint8Array, parentTxidBytes: Uint8Array): Uint8Array; /** * Build a complete ORS OP_RETURN payload for a TEXT_REPLY. * Format: ORS\x00 + pubkey(32) + sig(64) + kind(1=0x03) + parentTxid(32) + content_bytes */ export declare function buildReplyPayload(content: string, pubkey: Uint8Array, sig: Uint8Array, parentTxidBytes: Uint8Array): Uint8Array; /** * Build the unsigned payload for a REPOST. * Format: ORS\x00 + pubkey(32) + kind(1=0x04) + referencedTxid(32) (no sig) */ export declare function buildRepostUnsignedPayload(pubkey: Uint8Array, referencedTxidBytes: Uint8Array): Uint8Array; /** * Build a complete ORS OP_RETURN payload for a REPOST. * Format: ORS\x00 + pubkey(32) + sig(64) + kind(1=0x04) + referencedTxid(32) */ export declare function buildRepostPayload(pubkey: Uint8Array, sig: Uint8Array, referencedTxidBytes: Uint8Array): Uint8Array; /** * Build the unsigned payload for a QUOTE_REPOST. * Format: ORS\x00 + pubkey(32) + kind(1=0x05) + referencedTxid(32) + content_bytes (no sig) */ export declare function buildQuoteRepostUnsignedPayload(content: string, pubkey: Uint8Array, referencedTxidBytes: Uint8Array): Uint8Array; /** * Build a complete ORS OP_RETURN payload for a QUOTE_REPOST. * Format: ORS\x00 + pubkey(32) + sig(64) + kind(1=0x05) + referencedTxid(32) + content_bytes */ export declare function buildQuoteRepostPayload(content: string, pubkey: Uint8Array, sig: Uint8Array, referencedTxidBytes: Uint8Array): Uint8Array; /** * Build the unsigned payload for a FOLLOW. * Format: ORS\x00 + pubkey(32) + kind(1=0x06) + targetPubkey(32) + action(1) */ export declare function buildFollowUnsignedPayload(targetPubkey: Uint8Array, isFollow: boolean, pubkey: Uint8Array): Uint8Array; /** * Build a complete ORS OP_RETURN payload for a FOLLOW. * Format: ORS\x00 + pubkey(32) + sig(64) + kind(1=0x06) + targetPubkey(32) + action(1) */ export declare function buildFollowPayload(targetPubkey: Uint8Array, isFollow: boolean, pubkey: Uint8Array, sig: Uint8Array): Uint8Array; /** * Extract the unsigned bytes from a full on-chain payload (for verification). * Removes the 64-byte sig at offset SIG_OFFSET..KIND_OFFSET. */ export declare function getUnsignedBytes(fullPayload: Uint8Array): Uint8Array; /** * Build a complete ORS OP_RETURN payload for a TEXT_NOTE. * Format: ORS\x00 + pubkey(32) + sig(64) + kind(1) + content_bytes */ export declare function buildORSPayload(content: string, pubkey: Uint8Array, sig: Uint8Array): Uint8Array; /** * Build the v1 signing body: pubkey(32) + kind(1) + kind_data. * This is what gets sha256-hashed and Schnorr-signed for v1 posts. * No magic or version prefix — saves bytes in the signing scope. */ export declare function buildV1SigningBody(pubkey: Uint8Array, kind: number, kindData: Uint8Array): Uint8Array; /** * Split a v1 body across 80-byte OP_RETURN chunks. * * body = pubkey(32) + sig(64) + kind(1) + kind_data * * Chunk 0: ORS(3) | 0x01(1) | 0x00(1) | totalChunks(1) | body[0:74] — 80 bytes max * Chunk N: ORS(3) | 0x01(1) | N(1) | body[74+(N-1)*75:74+N*75] — 80 bytes max * * Returns an array of OP_RETURN payloads (without OP_RETURN opcode), each <= 80 bytes. */ export declare function buildV1Chunks(pubkey: Uint8Array, sig: Uint8Array, kind: number, kindData: Uint8Array): Uint8Array[]; /** * Build a complete ORS OP_RETURN payload for a PROFILE_UPDATE. * Format: ORS\x00 + pubkey(32) + sig(64) + kind(1=0x02) + propertyKind(1) + value_bytes */ export declare function buildProfileUpdatePayload(propertyKind: number, value: string | Uint8Array, pubkey: Uint8Array, sig: Uint8Array): Uint8Array; //# sourceMappingURL=encode.d.ts.map