Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ton Proof signatures generated from websites opened via Ton Keeper don't get verified #8

Open
hwnprsd opened this issue Oct 8, 2024 · 0 comments

Comments

@hwnprsd
Copy link

hwnprsd commented Oct 8, 2024

networks["-239"], _ = liteapi.NewClientWithDefaultMainnet()
tp := datatype.TonProof{
	Address: "0:05c1fbbc1a60df26e4998e7a7e4515d049960fe73ef6e213fa7be1a8effc2c18",
	Network: "-239",
	Proof: datatype.MessageInfo{
		Timestamp: int64(1728404674),
		Domain: datatype.Domain{
			Value:       "ordinox-staging.vercel.app",
			LengthBytes: uint32(len("ordinox-staging.vercel.app")),
		},
		Signature: "fhKEfE5viRjAU3q3/eKOdFu4M59RbOaOvysF71PKJ/dHLDVu+HD5WEXzycxw/n82a1pLbCtQouLIZzuLlaZ7AA==",
		Payload:   "{\"message\":\"You are logging into Origins by Ordinox. Nonce\",\"nonce\":\"1dd914cc2ebeeb80fe1ee1197c1981a4619665eb07b88d32ad9a865abf9366ed\",\"timestamp\":1728404668}",
		StateInit: "te6cckECFgEAAwQAAgE0AgEAUQAAAAApqaMXss51xuf7saXGEoJm2zyRgOmyWczo3WXAASyJAALGB7tAART/APSkE/S88sgLAwIBIAkEBPjygwjXGCDTH9Mf0x8C+CO78mTtRNDTH9Mf0//0BNFRQ7ryoVFRuvKiBfkBVBBk+RDyo/gAJKTIyx9SQMsfUjDL/1IQ9ADJ7VT4DwHTByHAAJ9sUZMg10qW0wfUAvsA6DDgIcAB4wAhwALjAAHAA5Ew4w0DpMjLHxLLH8v/CAcGBQAK9ADJ7VQAbIEBCNcY+gDTPzBSJIEBCPRZ8qeCEGRzdHJwdIAYyMsFywJQBc8WUAP6AhPLassfEss/yXP7AABwgQEI1xj6ANM/yFQgR4EBCPRR8qeCEG5vdGVwdIAYyMsFywJQBs8WUAT6AhTLahLLH8s/yXP7AAIAbtIH+gDU1CL5AAXIygcVy//J0Hd0gBjIywXLAiLPFlAF+gIUy2sSzMzJc/sAyEAUgQEI9FHypwICAUgTCgIBIAwLAFm9JCtvaiaECAoGuQ+gIYRw1AgIR6STfSmRDOaQPp/5g3gSgBt4EBSJhxWfMYQCASAODQARuMl+1E0NcLH4AgFYEg8CASAREAAZrx32omhAEGuQ64WPwAAZrc52omhAIGuQ64X/wAA9sp37UTQgQFA1yH0BDACyMoHy//J0AGBAQj0Cm+hMYALm0AHQ0wMhcbCSXwTgItdJwSCSXwTgAtMfIYIQcGx1Z70ighBkc3RyvbCSXwXgA/pAMCD6RAHIygfL/8nQ7UTQgQFA1yH0BDBcgQEI9ApvoTGzkl8H4AXTP8glghBwbHVnupI4MOMNA4IQZHN0crqSXwbjDRUUAIpQBIEBCPRZMO1E0IEBQNcgyAHPFvQAye1UAXKwjiOCEGRzdHKDHrFwgBhQBcsFUAPPFiP6AhPLassfyz/JgED7AJJfA+IAeAH6APQEMPgnbyIwUAqhIb7y4FCCEHBsdWeDHrFwgBhQBMsFJs8WWPoCGfQAy2kXyx9SYMs/IMmAQPsABmuDqcU=",
	},
}

The signature is generated using the TonKeeper app, with the domain opened from it.
Why is this signature not being verified?

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

No branches or pull requests

1 participant