Skip to content

Commit

Permalink
add howto icon to sidebar & witnessArg img (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
yfeng2824 authored Jul 1, 2024
1 parent fd9e5f9 commit d50a9fc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions website/docs/tech-explanation/witness.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ table WitnessArgs {
}
```

<img src={"/img/tech_explanation/witnessArg-structure.png"} width={688} height={353} alt="Structure of WitnessArg" />

Under this convention, each item in the witnesses field is a byte array serialized by Molecule from a WitnessArgs structure. Each WitnessArgs contains multiple proof data read by the input Lock Script, input Type Script, and the output Type Script. The order of WitnessArgs item in the `witnesses` field also matters, corresponding to the index of the virtual array created by the [Scripts grouping](/docs/tech-explanation/script-group-exe).

### CoBuild
Expand Down
2 changes: 1 addition & 1 deletion website/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default {
{
type: "category",
label: "How-Tos",
className: "how-tos",
className: "category-howto",
collapsible: false,
items: ["how-tos/how-to-sign-a-tx"],
},
Expand Down
6 changes: 6 additions & 0 deletions website/src/css/customTheme.css
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,12 @@
width: 1.125rem;
height: 1.125rem;
}
.category-howto > div > a:before {
content: url("/svg/icon-sidebar-howto.svg");
margin-right: 0.5rem;
width: 1.125rem;
height: 1.125rem;
}
.category-mining > div > a:before {
content: url("/svg/icon-sidebar-mining.svg");
margin-right: 0.5rem;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d50a9fc

Please sign in to comment.