Registers a policy based on a provided descriptor.
This function will:
Store the policy in ledgerState inside the ledgerManager.
Avoid re-registering if the policy was previously registered.
Skip registration if the policy is considered "standard".
It's important to understand the nature of the Ledger Policy being registered:
While a descriptor might point to a specific output index of a particular change address,
the corresponding Ledger Policy abstracts this and represents potential outputs for
all addresses (both external and internal).
This means that the registered Ledger Policy is a generalized version of the descriptor,
not assuming specific values for the keyPath.
Registers a policy based on a provided descriptor.
This function will:
ledgerStateinside theledgerManager.It's important to understand the nature of the Ledger Policy being registered: