1. 1. Introduction
  2. 2. Concepts
  3. 3. Using SDKs
    1. 3.1. Installing SDKs
    2. 3.2. Deploying the Modular Account
    3. 3.3. Using the Stark Validator
    4. 3.4. Using the Multiple Validator
    5. 3.5. Using the ETH Validator
    6. 3.6. Using the P256 Validator
    7. 3.7. Using the SessionKey Validator
  4. 4. Modules Internals
    1. 4.1. Developing a new Validator
    2. 4.2. The Stark Validator Module
    3. 4.3. The ETH and P256 Validator Module
    4. 4.4. The Session Key Validator Module
  5. 5. Roadmap and Known Issues
  6. 6. SDK Reference
    1. 6.1. @0xknwn/starknet-modular-account
      1. 6.1.1. SmartrAccount class
      2. 6.1.2. AccountModuleInterface interface
    2. 6.2. @0xknwn/starknet-module
      1. 6.2.1. EthModule class
      2. 6.2.2. MultisigModule class
      3. 6.2.3. P256Module class
      4. 6.2.4. P256Signer class
      5. 6.2.5. StarkModule class
    3. 6.3. @0xknwn/starknet-module-sessionkey
      1. 6.3.1. PolicyManager class
      2. 6.3.2. SessionKeyGrantor class
      3. 6.3.3. SessionKeyModule class
    4. 6.4. @0xknwn/starknet-test-helpers
      1. 6.4.1. Counter class
      2. 6.4.2. SwapRouter class
  7. 7. How to contribute
    1. 7.1. Writing code
    2. 7.2. Bibliography
    3. 7.3. Code of Conduct
    4. 7.4. MIT License

starknet-modular-account

@0xknwn/starknet-module-sessionkey


@0xknwn/starknet-module-sessionkey / PolicyManager

Class: PolicyManager

Defined in: sdks/module-sessionkey/src/policies.ts:10

Constructors

new PolicyManager()

new PolicyManager(policies): PolicyManager

Defined in: sdks/module-sessionkey/src/policies.ts:14

Parameters

policies

Policies

Returns

PolicyManager

Methods

getProof()

getProof(policy): string[]

Defined in: sdks/module-sessionkey/src/policies.ts:29

Parameters

policy

Policy

Returns

string[]


getRoot()

getRoot(): string

Defined in: sdks/module-sessionkey/src/policies.ts:25

Returns

string