Releases: synonymdev/bitkit-core
v0.1.33
v0.1.32
This Release:
- Adds the
paykitmodule and core functions - Adds docs & tests as needed
- Bumps version to
0.1.32 - Update bindings accordingly
Documentation
See src/modules/paykit/README.md for Swift and Kotlin implementation examples.
New Methods
Session Functions
createPubkyRingSessionRequest(callbackUrl, additionalParams?)- Generate URI to request session from Pubky RingparsePaykitDeeplink(url)- Parse a Paykit deeplink URLvalidatePaykitDeeplink(url)- Validate a Paykit deeplink URLcreateDeeplinkFromToken(baseUrl, action, token, additionalParams?)- Create deeplink from session tokencreateSessionTokenFromKeypair(publicKey, secretKey, homeserverUrl?, expiresInSeconds?)- Create session token from keypairserializeSessionToToken(sessionData)- Serialize session data to tokendeserializeTokenToSession(token)- Deserialize token to session data
Standalone Functions
setPaymentEndpoint(client, method, data)- Store/update a payment endpointremovePaymentEndpoint(client, method)- Remove a payment endpointgetPaymentList(reader, payee)- Get all payment methods for a usergetPaymentEndpoint(reader, payee, method)- Retrieve a specific payment endpointgetKnownContacts(reader, key)- Get user's known contacts
PubkyAuthenticatedTransport
PubkyAuthenticatedTransport()- Constructor (returns error, use token-based creation)setPaymentEndpoint(method, data)- Store/update a payment endpointremovePaymentEndpoint(method)- Remove a payment endpoint
PubkyUnauthenticatedTransport
PubkyUnauthenticatedTransport()- Constructor for read operationsgetPaymentList(payee)- Get all payment methods for a usergetPaymentEndpoint(payee, method)- Retrieve a specific payment endpointgetKnownContacts(key)- Get user's known contacts
Scanner
- New
Scanner.PaykitSessionvariant for scanning Paykit session QR codes
New Types
SessionToken- Base64-encoded session token wrapper (token: String)SessionData- Serializable session data (publicKey,secretKey,homeserverUrl?,expiresAt?,metadata?)MethodId- Payment method identifier (id: String)EndpointData- Payment endpoint data payload (data: String)PublicKey- Pubky public key wrapper (key: String)SupportedPayments- Map of method IDs to endpoint data (entries: Map<String, EndpointData>)PaykitDeeplink- Parsed deeplink (action,sessionToken?,parameters)ScannedPaykitSession- Scanned session from QR code (url,action,token,parameters)PaykitException/PaykitError- Error types
v0.1.31
feat: add channel liquidity calculation functions
v0.1.30
- Add get activity by txid by
v0.1.29
Added is_address_used to activity module.
v0.1.27
Add fee rate, is transfer, and channel id to the PreActivityMetadata
v0.1.26
Pre-Activity Metadata Improvements
v0.1.25
-
Added pre activity metadata
-
Renamed
get_all_tag_metadatatoget_all_activities_tags
v0.1.24
Changes:
Add ActivityTagsMetadata struct with full activity metadata (id, payment_hash,
tx_id, address, is_receive, tags, created_at) for backup format
Add ActivityTags struct (activity_id, tags) for simple tag upsert operations
Implement get_all_tag_metadata() method that joins with activities and
onchain_activity tables to return full metadata
Update upsert_tags() to accept ActivityTags (simplified structure) using
INSERT OR IGNORE for additive behavior
New calls exposed:
Backup: get_all_tag_metadata() returns Vec with full
activity context.
Restore: upsert_tags() accepts Vec with just activity_id and
tags.
v0.1.23
What's Changed
- chore: upgrade uniffi to 0.29.4 and enable Codable conformance for iOS