File tree Expand file tree Collapse file tree 4 files changed +6
-2
lines changed
bcr-ebill-api/src/service/bill_service Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
# 0.3.3
2
2
3
+ * Use Nip-04 as a default for Nostr communication
4
+ * Add incoming bill validation
3
5
* Add block data validation
4
6
* Add bill action validation for incoming blocks
5
7
* Add signer verification for incoming blocks
Original file line number Diff line number Diff line change @@ -63,6 +63,6 @@ pub enum Error {
63
63
RecourseeNotInContacts ,
64
64
65
65
/// errors that stem from bill validation errors
66
- #[ error( "bill validation error" ) ]
66
+ #[ error( "bill validation error {0} " ) ]
67
67
Validation ( #[ from] bcr_ebill_core:: ValidationError ) ,
68
68
}
Original file line number Diff line number Diff line change 1
1
pub const SURREAL_DB_CON_INDXDB_DATA : & str = "indxdb://data" ;
2
+ pub const API_VERSION : & str = "0.3.3" ;
Original file line number Diff line number Diff line change 1
1
#![ allow( clippy:: arc_with_non_send_sync) ]
2
2
use bcr_ebill_api:: { Config as ApiConfig , get_db_context, init} ;
3
- use constants:: SURREAL_DB_CON_INDXDB_DATA ;
3
+ use constants:: { API_VERSION , SURREAL_DB_CON_INDXDB_DATA } ;
4
4
use context:: { Context , get_ctx} ;
5
5
use futures:: { StreamExt , future:: ready} ;
6
6
use gloo_timers:: future:: { IntervalStream , TimeoutFuture } ;
@@ -69,6 +69,7 @@ pub async fn initialize_api(
69
69
let db = get_db_context ( & api_config) . await ?;
70
70
let keys = db. identity_store . get_or_create_key_pair ( ) . await ?;
71
71
72
+ info ! ( "Initialized WASM API {}" , API_VERSION ) ;
72
73
info ! ( "Local node id: {:?}" , keys. get_public_key( ) ) ;
73
74
info ! ( "Local npub: {:?}" , keys. get_nostr_npub( ) ) ;
74
75
info ! ( "Local npub as hex: {:?}" , keys. get_nostr_npub_as_hex( ) ) ;
You can’t perform that action at this time.
0 commit comments