You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+36-25Lines changed: 36 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,44 +8,55 @@ A collection of script templates for use with the official BSV Golang SDK
8
8
9
9
The goal of this repository is to provide a place where developers from around the ecosystem can publish all manner of script templates, without needing to update the core library. We're generally neutral and unbiased about what people contribute, so feel free to contribute and see what people do with your cool idea!
10
10
11
-
## Using
11
+
## Available Templates
12
12
13
-
You can write code like this:
13
+
| Template | Description |
14
+
|----------|-------------|
15
+
|[BitCom](./template/bitcom/)| BitCom protocol utilities (B, MAP, AIP) for structured data |
16
+
|[BSocial](./template/bsocial/)| Social media actions using BitcoinSchema.org standards |
17
+
|[BSV20](./template/bsv20/)| BSV20 token standard implementation |
18
+
|[BSV21](./template/bsv21/)| BSV21 token standard implementation including LTM and POW20 |
19
+
|[Cosign](./template/cosign/)| Co-signing transactions with multiple parties |
Welcome to the documentation for the BSV Script Templates repository. This documentation provides detailed information about the various Bitcoin SV script templates available in this repository.
4
+
5
+
## Structure
6
+
7
+
- Templates `./templates/*/README.md` - Documentation for individual script templates
8
+
-[Contributing](../CONTRIBUTING.md) - Guide for contributors
This package implements a Go version of the Sigma digital signature protocol for Bitcoin SV. Sigma is a signature scheme for signing Bitcoin transaction data, which can be used to prove ownership or authenticity of data stored on the blockchain.
4
+
5
+
## Overview
6
+
7
+
The Sigma protocol allows for:
8
+
- Creating digital signatures with various algorithms
[<signature_type>] # Optional: "string", "binary", or "hex"
53
+
[<message>] # Optional: the message that was signed
54
+
[<nonce>] # Optional: random nonce used for signing
55
+
```
56
+
57
+
### Required Fields
58
+
59
+
-**Algorithm**: The signature algorithm used (e.g., "ECDSA", "SHA256-ECDSA")
60
+
-**Signer Address**: The Bitcoin address of the signer
61
+
-**Signature Value**: The signature itself
62
+
63
+
### Optional Fields
64
+
65
+
-**Signature Type**: The format of the signature ("string", "binary", "hex")
66
+
- Defaults to "string" if not specified
67
+
-**Message**: The content that was signed
68
+
-**Nonce**: A random value used during signature generation
69
+
70
+
## Examples
71
+
72
+
See the test file for examples of creating and decoding Sigma signatures.
73
+
74
+
## Reference
75
+
76
+
This implementation is based on the [Sigma protocol specification](https://github.com/BitcoinSchema/go-sigma) and is compatible with the JavaScript Sigma Library.
0 commit comments