Skip to content

fix: empty bitstring ber encoding output should be 0x030100 - #123

Merged
microshine merged 1 commit into
PeculiarVentures:masterfrom
justin-tay:gh122
Dec 9, 2025
Merged

microshine merged 1 commit into
PeculiarVentures:masterfrom
justin-tay:gh122

Conversation

@justin-tay

Copy link
Copy Markdown
Contributor

Closes #122

Updates LocalBitStringValueBlock.ts to return 0x030100 for empty bitstring and update the types.spec.ts with the new expectation.

@microshine
microshine merged commit 1751502 into PeculiarVentures:master Dec 9, 2025
renovate Bot added a commit to valora-xyz/viem-account-hsm-gcp that referenced this pull request Dec 12, 2025
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [asn1js](https://redirect.github.com/PeculiarVentures/asn1.js) |
[`^3.0.6` ->
`^3.0.7`](https://renovatebot.com/diffs/npm/asn1js/3.0.6/3.0.7) |
![age](https://developer.mend.io/api/mc/badges/age/npm/asn1js/3.0.7?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/asn1js/3.0.6/3.0.7?slim=true)
|

---

### Release Notes

<details>
<summary>PeculiarVentures/asn1.js (asn1js)</summary>

###
[`v3.0.7`](https://redirect.github.com/PeculiarVentures/ASN1.js/releases/tag/v3.0.7)

[Compare
Source](https://redirect.github.com/PeculiarVentures/asn1.js/compare/v3.0.6...v3.0.7)

#### What's Changed

- chore(deps): bump image-size from 1.1.1 to 1.2.1 in /website by
[@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in
[PeculiarVentures/ASN1.js#118](https://redirect.github.com/PeculiarVentures/ASN1.js/pull/118)
- chore(deps): bump estree-util-value-to-estree from 3.0.1 to 3.3.3 in
/website by
[@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in
[PeculiarVentures/ASN1.js#119](https://redirect.github.com/PeculiarVentures/ASN1.js/pull/119)
- chore(deps): bump http-proxy-middleware from 2.0.7 to 2.0.9 in
/website by
[@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in
[PeculiarVentures/ASN1.js#120](https://redirect.github.com/PeculiarVentures/ASN1.js/pull/120)
- Update website GitHub Actions and package dependencies by
[@&#8203;donskov](https://redirect.github.com/donskov) in
[PeculiarVentures/ASN1.js#124](https://redirect.github.com/PeculiarVentures/ASN1.js/pull/124)
- Fixed Example to only use asn1js by
[@&#8203;StaticBR](https://redirect.github.com/StaticBR) in
[PeculiarVentures/ASN1.js#82](https://redirect.github.com/PeculiarVentures/ASN1.js/pull/82)
- Migrate from Yarn to npm for dependency management by
[@&#8203;donskov](https://redirect.github.com/donskov) in
[PeculiarVentures/ASN1.js#125](https://redirect.github.com/PeculiarVentures/ASN1.js/pull/125)
- Website: Fix npm audit issues by
[@&#8203;donskov](https://redirect.github.com/donskov) in
[PeculiarVentures/ASN1.js#126](https://redirect.github.com/PeculiarVentures/ASN1.js/pull/126)
- fix: empty bitstring ber encoding output should be 0x030100 by
[@&#8203;justin-tay](https://redirect.github.com/justin-tay) in
[PeculiarVentures/ASN1.js#123](https://redirect.github.com/PeculiarVentures/ASN1.js/pull/123)

#### New Contributors

- [@&#8203;StaticBR](https://redirect.github.com/StaticBR) made their
first contribution in
[PeculiarVentures/ASN1.js#82](https://redirect.github.com/PeculiarVentures/ASN1.js/pull/82)
- [@&#8203;justin-tay](https://redirect.github.com/justin-tay) made
their first contribution in
[PeculiarVentures/ASN1.js#123](https://redirect.github.com/PeculiarVentures/ASN1.js/pull/123)

**Full Changelog**:
<PeculiarVentures/ASN1.js@v3.0.6...v3.0.7>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - "after 8:00 before 23:00 every weekday except on Friday" in
timezone UTC.

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/valora-inc/viem-account-hsm-gcp).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi40Mi4yIiwidXBkYXRlZEluVmVyIjoiNDIuNDIuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsibnBtIiwicmVub3ZhdGUiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid BER encoding for empty BitString

2 participants