Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 978 Bytes

README.md

File metadata and controls

13 lines (7 loc) · 978 Bytes

Blockchain Commons Pattern Matcher for Gordian Envelope (TypeScript)

Disclaimer: This package is under active development and APIs may change.

Introduction

@bcts/envelope-pattern provides a powerful pattern matching language for querying and extracting data from Gordian Envelope structures. It extends the dCBOR pattern matching capabilities with envelope-specific patterns for subjects, predicates, objects, assertions, and wrapped envelopes.

The pattern language is designed to be expressive yet concise, allowing you to match complex nested envelope structures with simple pattern expressions.

Rust Reference Implementation

This TypeScript implementation is based on bc-envelope-pattern-rust v0.14.0 (commit).