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

Function payment_hash

plugins/lsps-plugin/src/client.rs:811–813  ·  view source on GitHub ↗
(preimage: &[u8])

Source from the content-addressed store, hash-verified

809}
810
811pub fn payment_hash(preimage: &[u8]) -> sha256::Hash {
812 sha256::Hash::hash(preimage)
813}
814
815fn continue_ok() -> Result<serde_json::Value, anyhow::Error> {
816 Ok(serde_json::json!({"result": "continue"}))

Callers 1

on_invoice_paymentFunction · 0.70

Calls 1

hashFunction · 0.50

Tested by

no test coverage detected