npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@lit-protocol/vincent-policy-safe-multisig

v0.0.14

Published

A Vincent policy

Readme

Safe Multisig Vincent Policy

This Policy is apart of the Vincent ecosystem and is used to enforce Safe Multisig governance over Vincent Tool executions. When paired with Vincent Tools, this Policy restricts the execution of Vincent Tools to only be permitted when a threshold number of Safe signers have approved the execution with a specific set of parameters.

Key Features

  • Multi-signature Validation: Requires a threshold number of signatures from Safe wallet owners
  • EIP-712 Message Signing: Uses typed structured data to define the Vincent Tool execution request
  • Replay Protection: Implements nonce-based replay attack prevention and tracks message consumption via the SafeMessageTracker contract
  • Chain-agnostic: Supports the blockchain networks that are supported by both Lit and Safe

How It Works

  1. Message Creation: An execution of a Vincent Tool is encoded as an EIP-712 message
    • Included in this message are properties such as the Vincent App ID and Version the Tool will be executed for, the Vincent Agent Wallet that will be used for signing transactions, and the parameters that will be used to execute the Vincent Tool
  2. Signature Collection: Safe owners sign the EIP-712 message using their wallets until the threshold number of signatures is reached as defined by the Safe
  3. Vincent Tool Execution: A Vincent App executes the Vincent Tool on behalf of the Vincent Agent Wallet, with the approved parameters as defined in the EIP-712 message
  4. Validation: Before the Tool logic is executed, the Vincent system executes the Multisig Policy which performs the following steps to validate whether the Vincent Tool is permitted to execute by the Safe Multisig:
    1. Queries the SafeMessageTracker contract to check if the Safe message hash provided to the Tool as a parameter has been marked as consumed for the Vincent Agent Wallet the Tool is being executed on behalf of
    2. Fetches the Safe message from the Safe Transaction Service using the Safe message hash, validating the message exists for the Safe
    3. Validates the Safe message has reached the threshold number of signatures as defined by the Safe
    4. Re-builds the EIP-712 message that represents the Tool execution request using the parameters given to the Tool and the context of what Vincent App the Tool is being executed for - This happens within the Lit Nodes Trusted Execution Environment, preventing tampering or malicious activity
    5. Validates the signed EIP-712 message retrieved from the Safe Transaction Service matches the EIP-712 message that was built in the previous step, this steps also validates:
      • The Tool parameters signed in the EIP-712 message match what was provided to the Vincent Tool
      • The Tool is being executed for the Vincent App Id, App Version, and Agent Wallet Address as defined in the EIP-712 message
      • The EIP-712 message has not expired
    6. Lastly, each signature retrieved from the Safe Transaction Service is validated against the Safe contract to ensure the signature is valid and for the correct Safe address
  5. Allow the Tool execution: If all the previous steps pass, the Tool execution is permitted and the Tool logic is executed
  6. Mark the Safe message as consumed: After the Tool is executed, the Safe message is marked as consumed in the SafeMessageTracker contract to prevent replay attacks

How to Use this Policy

Depending on your role in the Vincent ecosystem, there are different steps to use this Policy. Checkout the following guides depending on your role:

Testing and Contributing

If you are a developer, or want to run the end-to-end test for this Policy, checkout the Testing and Contributing guide.

License

This project is licensed under the MIT License.