Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/bigchaindb/bigchaindb
/ validate
Function
validate
tests/validation/test_transaction_structure.py:28–31 ·
view source on GitHub ↗
(tx)
Source
from the content-addressed store, hash-verified
26
27
28
def
validate(tx):
29
if
isinstance(tx, Transaction):
30
tx = tx.to_dict()
31
Transaction.from_dict(tx)
32
33
34
def
validate_raises(tx, exc=SchemaValidationError):
Callers
5
validate_raises
Function · 0.70
test_validate_fails_metadata_empty_dict
Function · 0.70
test_transfer_asset_schema
Function · 0.70
test_high_amounts
Function · 0.70
test_validate_version
Function · 0.70
Calls
2
to_dict
Method · 0.45
from_dict
Method · 0.45
Tested by
no test coverage detected