Skip to content

Releases: synonymdev/bitkit-core

v0.1.33

11 Dec 11:33
539c48d

Choose a tag to compare

  • Add seen at to activities
  • Add tx details table to save and fetch tx details

v0.1.32

09 Dec 02:19
3ccc2e6

Choose a tag to compare

This Release:

  • Adds the paykit module 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 Ring
  • parsePaykitDeeplink(url) - Parse a Paykit deeplink URL
  • validatePaykitDeeplink(url) - Validate a Paykit deeplink URL
  • createDeeplinkFromToken(baseUrl, action, token, additionalParams?) - Create deeplink from session token
  • createSessionTokenFromKeypair(publicKey, secretKey, homeserverUrl?, expiresInSeconds?) - Create session token from keypair
  • serializeSessionToToken(sessionData) - Serialize session data to token
  • deserializeTokenToSession(token) - Deserialize token to session data

Standalone Functions

  • setPaymentEndpoint(client, method, data) - Store/update a payment endpoint
  • removePaymentEndpoint(client, method) - Remove a payment endpoint
  • getPaymentList(reader, payee) - Get all payment methods for a user
  • getPaymentEndpoint(reader, payee, method) - Retrieve a specific payment endpoint
  • getKnownContacts(reader, key) - Get user's known contacts

PubkyAuthenticatedTransport

  • PubkyAuthenticatedTransport() - Constructor (returns error, use token-based creation)
  • setPaymentEndpoint(method, data) - Store/update a payment endpoint
  • removePaymentEndpoint(method) - Remove a payment endpoint

PubkyUnauthenticatedTransport

  • PubkyUnauthenticatedTransport() - Constructor for read operations
  • getPaymentList(payee) - Get all payment methods for a user
  • getPaymentEndpoint(payee, method) - Retrieve a specific payment endpoint
  • getKnownContacts(key) - Get user's known contacts

Scanner

  • New Scanner.PaykitSession variant 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

04 Dec 23:30
0e66950

Choose a tag to compare

feat: add channel liquidity calculation functions

v0.1.30

26 Nov 16:12
aa2ad84

Choose a tag to compare

  • Add get activity by txid by

v0.1.29

25 Nov 16:18
c16b360

Choose a tag to compare

Added is_address_used to activity module.

v0.1.27

13 Nov 14:53
d2b12e1

Choose a tag to compare

Add fee rate, is transfer, and channel id to the PreActivityMetadata

v0.1.26

13 Nov 11:58
a070e8e

Choose a tag to compare

Pre-Activity Metadata Improvements

v0.1.25

12 Nov 12:08
d30620f

Choose a tag to compare

  • Added pre activity metadata

  • Renamed get_all_tag_metadata to get_all_activities_tags

v0.1.24

06 Nov 19:31
1ecc14b

Choose a tag to compare

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

06 Nov 12:25
3cd496c

Choose a tag to compare

What's Changed

  • chore: upgrade uniffi to 0.29.4 and enable Codable conformance for iOS