MCPcopy Create free account
hub / github.com/ElementsProject/lightning / db_bind_secret_arr

Function db_bind_secret_arr

db/bindings.c:124–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void db_bind_secret_arr(struct db_stmt *stmt, const struct secret *s)
125{
126 size_t num = tal_count(s), elsize = sizeof(s->data);
127 u8 *ser = tal_arr(stmt, u8, num * elsize);
128
129 for (size_t i = 0; i < num; ++i)
130 memcpy(ser + i * elsize, &s[i], elsize);
131
132 db_bind_blob(stmt, ser, tal_count(ser));
133}
134
135void db_bind_txid(struct db_stmt *stmt, const struct bitcoin_txid *t)
136{

Callers 1

wallet_add_paymentFunction · 0.85

Calls 1

db_bind_blobFunction · 0.85

Tested by

no test coverage detected