Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // RequiredPermissions is a map of all tapd RPC methods and their // required macaroon permissions to access tapd. // // TODO(roasbeef): re think these and go instead w/ the * approach? RequiredPermissions = map[string][]bakery.Op{ "/taprpc.TaprootAssets/StopDaemon": {{ Entity: "daemon", Action: "write", }}, "/taprpc.TaprootAssets/DebugLevel": {{ Entity: "daemon", Action: "write", }}, "/taprpc.TaprootAssets/GetInfo": {{ Entity: "daemon", Action: "read", }}, "/taprpc.TaprootAssets/ListAssets": {{ Entity: "assets", Action: "read", }}, "/taprpc.TaprootAssets/ListUtxos": {{ Entity: "assets", Action: "read", }}, "/taprpc.TaprootAssets/ListGroups": {{ Entity: "assets", Action: "read", }}, "/taprpc.TaprootAssets/ListBalances": {{ Entity: "assets", Action: "read", }}, "/taprpc.TaprootAssets/ListTransfers": {{ Entity: "assets", Action: "read", }}, "/taprpc.TaprootAssets/QueryAddrs": {{ Entity: "addresses", Action: "read", }}, "/taprpc.TaprootAssets/NewAddr": {{ Entity: "addresses", Action: "write", }}, "/taprpc.TaprootAssets/DecodeAddr": {{ Entity: "addresses", Action: "read", }}, "/taprpc.TaprootAssets/AddrReceives": {{ Entity: "addresses", Action: "read", }}, "/taprpc.TaprootAssets/VerifyProof": {{ Entity: "proofs", Action: "read", }}, "/taprpc.TaprootAssets/DecodeProof": {{ Entity: "proofs", Action: "read", }}, "/taprpc.TaprootAssets/ExportProof": {{ Entity: "proofs", Action: "read", }}, "/taprpc.TaprootAssets/ImportProof": {{ Entity: "proofs", Action: "write", }}, "/taprpc.TaprootAssets/SendAsset": {{ Entity: "assets", Action: "write", }}, "/taprpc.TaprootAssets/FetchAssetMeta": {{ Entity: "assets", Action: "read", }}, "/taprpc.TaprootAssets/SubscribeSendAssetEventNtfns": {{ Entity: "assets", Action: "write", }}, "/assetwalletrpc.AssetWallet/FundVirtualPsbt": {{ Entity: "assets", Action: "write", }}, "/assetwalletrpc.AssetWallet/SignVirtualPsbt": {{ Entity: "assets", Action: "write", }}, "/assetwalletrpc.AssetWallet/AnchorVirtualPsbts": {{ Entity: "assets", Action: "write", }}, "/assetwalletrpc.AssetWallet/NextInternalKey": {{ Entity: "assets", Action: "write", }}, "/assetwalletrpc.AssetWallet/NextScriptKey": {{ Entity: "assets", Action: "write", }}, "/assetwalletrpc.AssetWallet/ProveAssetOwnership": {{ Entity: "assets", Action: "write", }}, "/assetwalletrpc.AssetWallet/VerifyAssetOwnership": {{ Entity: "assets", Action: "read", }}, "/mintrpc.Mint/MintAsset": {{ Entity: "mint", Action: "write", }}, "/mintrpc.Mint/FinalizeBatch": {{ Entity: "mint", Action: "write", }}, "/mintrpc.Mint/CancelBatch": {{ Entity: "mint", Action: "write", }}, "/mintrpc.Mint/ListBatches": {{ Entity: "mint", Action: "read", }}, "/universerpc.Universe/AssetRoots": {{ Entity: "universe", Action: "read", }}, "/universerpc.Universe/QueryAssetRoots": {{ Entity: "universe", Action: "read", }}, "/universerpc.Universe/DeleteAssetRoot": {{ Entity: "universe", Action: "write", }}, "/universerpc.Universe/AssetLeafKeys": {{ Entity: "universe", Action: "read", }}, "/universerpc.Universe/AssetLeaves": {{ Entity: "universe", Action: "read", }}, "/universerpc.Universe/QueryProof": {{ Entity: "universe", Action: "read", }}, "/universerpc.Universe/InsertProof": {{ Entity: "universe", Action: "write", }}, "/universerpc.Universe/SyncUniverse": {{ Entity: "universe", Action: "write", }}, "/universerpc.Universe/ListFederationServers": {{ Entity: "universe", Action: "read", }}, "/universerpc.Universe/AddFederationServer": {{ Entity: "universe", Action: "write", }}, "/universerpc.Universe/DeleteFederationServer": {{ Entity: "universe", Action: "write", }}, "/universerpc.Universe/UniverseStats": {{ Entity: "universe", Action: "read", }}, "/universerpc.Universe/QueryAssetStats": {{ Entity: "universe", Action: "read", }}, } // MacaroonWhitelist defines methods that we don't require macaroons to // access. For now, these are the Universe related read/write methods. // We permit InsertProof as a valid proof requires an on-chain // transaction, so we gain a layer of DoS defense. MacaroonWhitelist = map[string]struct{}{ "/universerpc.Universe/AssetRoots": {}, "/universerpc.Universe/QueryAssetRoots": {}, "/universerpc.Universe/AssetLeafKeys": {}, "/universerpc.Universe/AssetLeaves": {}, "/universerpc.Universe/QueryProof": {}, "/universerpc.Universe/InsertProof": {}, "/universerpc.Universe/Info": {}, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.