commit 7bcdc7868d9a24260c480fa2351c8754ccbd70b4
parent 9f74e010ed149d7cf8a147f29cd7068e6ced8380
Author: lash <dev@holbrook.no>
Date: Sun, 15 Feb 2026 14:54:33 +0000
Add docstring for entry verify
Diffstat:
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/dummy/doc/internals.texi b/dummy/doc/internals.texi
@@ -9,8 +9,6 @@ Signatures are calculated and embedded on three elements individually, while at
The following describes any transformation applied to the XML. Also, any @code{sig} elements are removed before .
-Where expendient, @url{https://dwarfstd.org/doc/Dwarf3.pdf,LEB128s} encoding is used for variable-length integer encoding.
-
@anchor{serialize_attachment}
@subsection Attachment
@@ -49,6 +47,8 @@ The lookup key descriptions below are enumerated. Each element in the list shoul
Any optional and undefined elements @emph{must} contain a @emph{null value} in the serialization.
+Where expendient, @url{https://dwarfstd.org/doc/Dwarf3.pdf,LEB128s} encoding is used for variable-length integer encoding.
+
@xref{store,Cache store} for more details.
@subsection Ledger
diff --git a/dummy/usawa/entry.py b/dummy/usawa/entry.py
@@ -487,7 +487,18 @@ class Entry:
return entry
+
+ """Verify signature on entry.
+
+ At least one signature must be valid for one of the public keys in the wallet or ACL.
+ :param wallet: Wallet holding a public key to verify.
+ :type wallet: usawa.Wallet
+ :param acl: A collection of public keys to verify.
+ :type acl: usawa.ACL
+ :raises VerifyError: Invalid signature.
+ :raises ValueError: Neither wallet nor ACL supplied.
+ """
def verify(self, wallet=None, acl=None):
if wallet == None and acl == None:
raise ValueError('verify needs at least one of wallet or acl')