Skip to content

Commit

Permalink
new arrows and full sha256 for bip39 hex
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Platt authored and Marc Platt committed Aug 2, 2024
1 parent e5d607f commit 5e2ed34
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 4 deletions.
Binary file added assets/images/left-arrow-svgrepo-com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions assets/images/left-arrow-svgrepo-com.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://c865fxarlp4e1"
path="res://.godot/imported/left-arrow-svgrepo-com.png-09d152a0374ac529486577896f020c4e.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://assets/images/left-arrow-svgrepo-com.png"
dest_files=["res://.godot/imported/left-arrow-svgrepo-com.png-09d152a0374ac529486577896f020c4e.ctex"]

[params]

compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions assets/images/right-arrow-next-svgrepo-com (2).png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://4ulwmgydwoi2"
path="res://.godot/imported/right-arrow-next-svgrepo-com (2).png-665bbb95790be8cf11c37fcad0ac275c.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://assets/images/right-arrow-next-svgrepo-com (2).png"
dest_files=["res://.godot/imported/right-arrow-next-svgrepo-com (2).png-665bbb95790be8cf11c37fcad0ac275c.ctex"]

[params]

compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
18 changes: 14 additions & 4 deletions source/application/wallet_creator.gd
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ func clear_all_output():
var bip39_info_label = bip39_panel.get_node("BIP39Info")
if bip39_info_label:
var headers_text = """[table=2]
[cell][color=white][b][u]BIP39 Hex:[/u][/b][/color][/cell] [cell][/cell]
[cell][color=white][b][u]BIP39 Hex:
[/u][/b][/color][/cell] [cell][/cell]
[cell][color=white][b][u]BIP39 Bin:
Expand Down Expand Up @@ -171,9 +173,14 @@ func update_bip39_panel(output: Dictionary):
formatted_checksum += checksum.substr(i, 4) + " "
formatted_checksum = formatted_checksum.strip_edges()

var bip39_hex = output.get("bip39_hex", "")
var first_half = bip39_hex.substr(0, 32)
var second_half = bip39_hex.substr(32)

var info_text = """[table=2]
[cell][color=white][b][u]BIP39 Hex:[/u][/b][/color][/cell] [cell]{bip39_hex}[/cell]
[cell][color=white][b][u]BIP39 Hex:
[/u][/b][/color][/cell] [cell]{first_half}[color=#808080]{second_half}[/color][/cell]
[cell][color=white][b][u]BIP39 Bin:
Expand All @@ -182,7 +189,8 @@ func update_bip39_panel(output: Dictionary):
[cell][color=white][b][u]BIP39 Checksum:[/u][/b][/color][/cell] [cell][color=green]{bip39_csum}[/color][/cell]
[cell][color=white][b][u]BIP39 Checksum Hex:[/u][/b][/color][/cell] [cell][color=green]{bip39_csum_hex}[/color][/cell]
[/table]""".format({
"bip39_hex": output.get("bip39_hex", ""),
"first_half": first_half,
"second_half": second_half,
"bip39_bin": formatted_bin,
"bip39_csum": formatted_checksum,
"bip39_csum_hex": output.get("bip39_csum_hex", "")
Expand Down Expand Up @@ -246,7 +254,9 @@ func setup_bip39_headers():
var bip39_info_label = bip39_panel.get_node("BIP39Info")
if bip39_info_label:
var headers_text = """[table=2]
[cell][color=white][b][u]BIP39 Hex:[/u][/b][/color][/cell] [cell][/cell]
[cell][color=white][b][u]BIP39 Hex:
[/u][/b][/color][/cell] [cell][/cell]
[cell][color=white][b][u]BIP39 Bin:
Expand Down

0 comments on commit 5e2ed34

Please sign in to comment.